Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] crimson namespace bug

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: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] crimson namespace bug
  • Date: Thu, 07 Apr 2005 15:19:24 -0400

Wolfgang Hoschek wrote:
Here is another bug that shows up with crimson but not with xerces-2.6.2:

new Builder().build("test.xml");

file test.xml:


<doc xmlns:xml="http://www.w3.org/XML/1998/namespace";>
</doc>


Exception in thread "main" nu.xom.ParsingException: Illegal Namespace prefix: "xml". at line 1, column -1.
at nu.xom.Builder.build(Unknown Source)
at nu.xom.Builder.build(Unknown Source)
at nu.xom.Builder.build(Unknown Source)
at nux.xom.tests.BinaryXMLTest.main(BinaryXMLTest.java:125)


I reproduced this one, but based on the stack trace Crimson is (incorrectly) signaling an error before XOM ever sees the parsed document. I don't see any plausible way to work around this. There's not a lot XOM can do if the underlying SAX parser incorrectly labels a well-formed document as malformed. :-(

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page