Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XInclude exception

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Nils_Kilden-Pedersen AT Countrywide.Com
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XInclude exception
  • Date: Mon, 22 Sep 2003 13:17:57 -0400

I have this XML:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xi="http://www.w3.org/2001/XInclude";>
<xi:include href="some.xml"/>
</root>

Is this incorrect use of XInclude?

XOM throws this exception:
Exception in thread "main" nu.xom.NamespaceException: Attribute objects
are not
used to represent namespace declarations
at nu.xom.Attribute.setNamespace(Attribute.java:407)
at nu.xom.Attribute.<init>(Attribute.java:150)
at nu.xom.Attribute.<init>(Attribute.java:116)
at nu.xom.converters.DOMConverter.convert(DOMConverter.java:186)
at nu.xom.converters.DOMConverter.translate(DOMConverter.java:91)
at test.Test.main(Test.java:40)


It could be a bug, but it's hard to tell without seeing the code and some.xml. Why is nu.xom.converters.DOMConverter showing up in the stack trace? Whether it's my bug or yours, that's probably where to look, and this may have nothing to do with XXInclude.

--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page