I found a small "bug" or a discrepancy between how the SAX parser behaves and how the DOM parser does:
I have this document: <document xmlns:test="http://www.betaversion.org/2000/test"> <test:test>Test</test:test> </document> When parsed the DOM parser reports that the attribute "xmlns:test" has the following properties: - namespace uri: http://www.w3.org/2000/xmlns/ - prefix: xmlns - local name: html - (raw) name: xmlns:html - value: http://www.betaversion.org/2000/test while the SAX parser reports: - namespace uri: - prefix: (not available in SAX) - local name: html - (raw) name: xmlns:html - value: http://www.betaversion.org/2000/test In short words, for XMLNS declarations the DOM parser reports that xmlns: URI is "http://www.w3.org/2000/xmlns" while the sax parser doesnt report any uri. Pier -- -------------------------------------------------------------------- - P I E R - stable structure erected over water to allow the docking of seacraft <mailto:[EMAIL PROTECTED]> <http://www.betaversion.org/~pier/> -------------------------------------------------------------------- - ApacheCON Y2K: Come to the official Apache developers conference - -------------------- <http://www.apachecon.com> --------------------