A while back, I posted a note [1] on how the introduction of
DOMInputSource and DOMEntityResolver will affect the
Xerces-C++ internal components. There was not much of a
response. I hope that this note will give people a good overview
of the how Xerces-C++ works internally. We currently have
two input source (IS) wrappers (SAX IS->DOM IS) and
(DOM IS->SAX IS). Those wrappers allow users to use the
LocalFile/MemBuf/etc. classes (which are SAX IS) and pass
them to a DOMBuilder->parse method. Since, SAX IS does
not have a method to get/set the base URI, the resolve entity
of the DOM entity resolver will be passed a null string. One
change that we can make is to add a get/setbaseURI on SAX
IS which we can then pass to the resolve entity method.

Khaled
[1] http://marc.theaimsgroup.com/?l=xerces-c-dev&m=102086592028855&w=2

Colin Paul Adams wrote:

> >>>>> "Gareth" == Gareth Reakes <[EMAIL PROTECTED]> writes:
>
>     Gareth> Apologies, I did not mean this to sound as if I was
>     Gareth> expecting you to provide anything. I really do mean that I
>
> Oh, I didn't interpret it like that. I was actually intending to write
> the code some time in the future, when i needed it.
>
>     Gareth> can do this in short order if this is helpful to you and
>     Gareth> is all that is required to be helpful. By new spec I was
>     Gareth> referring to the one released at the end of Feb.
>
> It will be helpful.
>
> I have written a complete (just about) interface for Eiffel to the
> DOM, implemented as bridging code to xerces-c 2.2.
>
> Because I have not done any SAX interface, it is currently impossible
> to write an entity resolver.
>
> I know that I will need it some time down the line (not exactly sure
> when yet).
> --
> Colin Paul Adams
> Preston Lancashire
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to