xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David N Bertoni/Cambridge/IBM" <david_n_bert...@us.ibm.com>
Subject Re: Using Cached Entities in Xerces
Date Mon, 06 May 2002 05:53:20 GMT

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                                                           
                                            
                      <nick@webthing.c         To:      <general@xml.apache.org>
                                                     
                      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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org







---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message