Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] "Additional namespace" Exception using XMLReader

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: Edwin Dankert <edankert AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] "Additional namespace" Exception using XMLReader
  • Date: Tue, 21 Aug 2007 17:02:48 -0400

Edwin Dankert wrote:

This is where it all goes wrong:

<code>
StringReader reader = new StringReader(
"<test xmlns:test=\"http://www.edankert.com/test\";
test:attribute=\"whatever\"/>");

Builder builder = new Builder(
SAXParserFactory.newInstance().newSAXParser().getXMLReader());
builder.build(reader);
</code>


Off the top of my head and without time to actually test, I suspect you're getting bitten by known design flaws in the SAXParser class.

NEVER, NEVER, NEVER use that class for anything.

If you can reproduce this problem without involving JAXP, I'll take another look at it.

--
Elliotte




Archive powered by MHonArc 2.6.24.

Top of Page