Hello,

When parsing the document:

<?xml version="1.0" encoding="iso-8859-1"?>

<myNS1:root xmlns:myNS1="http://www.mydomain.com/";>

</myNS1:root>

with a DOMParser object, the resulting DOM tree says that my root element
has an attribute, myNS1, which is in the namespace
http://www.w3.org/2000/xmlns/. The parser also says that the root element
is in the myNS1 element (which is correct). The parser has the namespaces
feature turned on.

When I parse the same document with a SAX XMLReader
(ie
 XMLReader parser =
            XMLReaderFactory.createXMLReader
            ( "org.apache.xerces.parsers.SAXParser");
)

the parser correctly?? drops the myNS1 decl as an attribute.

I'm using xerces-j 2.0.0 (release, not beta). What's going on???

Thank you in advance for your time,
Matt

-- 
Matt Leinhos
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to