You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Lingzhi Zhang <lz...@gmail.com> on 2005/05/12 22:56:00 UTC

using XInclude

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. 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.

Thanks

Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: using XInclude

Posted by Michael Glavassevich <mr...@apache.org>.
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: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
>

---------------------------
Michael Glavassevich
E-mail: mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org