This is not the list for Xerces-C questions -- post on the Xerces-C dev.
list.
An XML parser parses a stream of characters, so returning a pre-parsed tree
from an InputSource is non-sensical. When the parser gets this tree
representing the external parsed entity, what's it supposed to do with it?
By the way, the Xalan-C++ sources in CVS are compatible with Xerces-C 1.7,
so you can upgrade if you want to build your own binaries.
Dave
Nick Kew
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
om> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Using Cached Entities in
Xerces
05/04/2002 09:57
PM
Please respond
to general
Using Xerces-C 1.6 (can't upgrade to 1.7 until there's a Xalan that
works with it).
I'd like to be able to return a pre-parsed and cached document from
an EntityResolver.
As it stands, EntityResolver returns an InputSource, and InputSource
serves only to return a binInputStream, which seems to preclude using a
pre-parsed doctree.
OTOH, the Xalan XSLTInputSource offers a possibility to work with
parsed documents (using XalanNode) rather than InputStreams.
Is there any way I can do this for a Xerces parser?
--
Nick Kew
Available for contract work - Programming, Unix, Networking, Markup, etc.
---------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]