Hi Leandro, The XPointer support [1] in Xerces is currently limited to the XPointer Framework and XPointer element() schemes. It is possible to do what you want but it's a bit ugly. You would need N include elements, where N is the number of <xxx/> elements in your document:
<xi:include href="doc.xml" xpointer="element(/1/1)"/> <xi:include href="doc.xml" xpointer="element(/1/2)"/> <xi:include href="doc.xml" xpointer="element(/1/3)"/> <xi:include href="doc.xml" xpointer="element(/1/4)"/> etc... Thanks. [1] http://xerces.apache.org/xerces2-j/faq-xinclude.html#faq-7 Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected] Leandro Quiroga <[email protected]> wrote on 05/04/2010 02:01:08 PM: > Hi, I'm trying to include the xml inside the tags <att> </att> > (without the tags <att> </att>) into another xml. > How can I do this using the xpointer attribute of the xinclude tag? > > <att> > <xxx/> > <xxx/> > <xxx/> > <xxx/> > <xxx/> > <xxx/> > <xxx/> > <xxx/> > </att> > > I'm using Apache Xerces for parsing the xml. > > Thanks > > Leandro > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]
