Hi;
Once I have loaded an xml file into a DOM, is there any way to then get any
namespace declarations that were in the xml file? Or are those just discarded
as the DOM is populated?
And if you can't get it from the DOM, any other way to get the namespace(s)?
I'm assuming doing a SAX read which returns each element including NameSpaces
and pull it form that (and build up the DOM at the same time)?
In my case I get a Stream so I can't read it twice as the Stream may not
support reset. And it may have NS elements - but I don't know if there are
any or what they are except by reading the Stream.
--
thanks - dave
Once I have loaded an xml file into a DOM, is there any way to then get any
namespace declarations that were in the xml file? Or are those just discarded
as the DOM is populated?
And if you can't get it from the DOM, any other way to get the namespace(s)?
I'm assuming doing a SAX read which returns each element including NameSpaces
and pull it form that (and build up the DOM at the same time)?
In my case I get a Stream so I can't read it twice as the Stream may not
support reset. And it may have NS elements - but I don't know if there are
any or what they are except by reading the Stream.
--
thanks - dave
Comment