[XOM-interest] "Additional namespace" Exception using XMLReader
Elliotte Rusty Harold
elharo at metalab.unc.edu
Tue Aug 21 17:02:48 EDT 2007
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
More information about the XOM-interest
mailing list