On Thu, 12 May 2005, Lingzhi Zhang wrote:
Hi,
I am thinking about using the XInclude feature in Xerces 2. Basically, I have a static XML document which has some dynamic contents (using XInclude to make a reference to those dynamic content.). These dynamic content is generated by querying database.
I am new to XInclude. My understand is that XInclude can only includes a file on the disk.
The include location (the value of the href attribute) is intepreted as a URI (or IRI). It identifies a resource not necessarily its location, which may be on disk, the network or somewhere else.
I wonder whether it is possible to make XInclude include XML in binary format such as an input stream using Xerces. And those included dynamic content is process at runtime.
Yes. Register an entity resolver with the parser. Xerces will call it, giving your application an opportunity to resolve each include.
Thanks
Steve
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------- Michael Glavassevich E-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
