Paul Clapham wrote:Well, first of all, is your parser namespace-aware? By default parsers created by DocumentBuilderFactory (which it looks like you are using that) are not namespace-aware. Check the methods of DocumentBuilderFactory.
Then once you have taken care of that, the method you're looking for is getNamespaceURI().
Thanks. It works :-)