xinclude and jdom?

Georg <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Hi,

I tried getting xinclude to work with jdom, but failed.

On referencing the xinclude namespace like this in my root tag:

<myroottag xmlns:xi="xmlns:xi="http://www.w3.org/2001/XInclude">

the parser took 'xmlns:xi' as an attribute, and consequently failed
validation :(

I also tried with validation turned off, but then it didn't recognize the
real include,

<xi:include href="somewhere.xml"/>

instead it parsed 'xi:include' as a regular element :(

What's wrong here?

--
Regards,
Georg.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.