[jdom-interest] xinclude and jdom?

Georg gwk.rko at googlemail.com
Fri Mar 6 07:24:59 PST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20090306/3e8f962e/attachment.htm


More information about the jdom-interest mailing list