xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] "Additional namespace" Exception using XMLReader
- 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
-
[XOM-interest] "Additional namespace" Exception using XMLReader,
Edwin Dankert, 08/21/2007
-
Re: [XOM-interest] "Additional namespace" Exception using XMLReader,
Elliotte Rusty Harold, 08/21/2007
-
Re: [XOM-interest] "Additional namespace" Exception using XMLReader,
Edwin Dankert, 08/22/2007
- Re: [XOM-interest] "Additional namespace" Exception using XMLReader, Elliotte Harold, 08/22/2007
-
Re: [XOM-interest] "Additional namespace" Exception using XMLReader,
Edwin Dankert, 08/22/2007
-
Re: [XOM-interest] "Additional namespace" Exception using XMLReader,
Elliotte Rusty Harold, 08/21/2007
Archive powered by MHonArc 2.6.24.