Namespace support is turned on by default.
xmlns
and
xmlns:prefix
attributes are not reported
as attributes
These methods report the namespace declarations for a START_ELEMENT event (bindings going into scope) or an END_ELEMENT event (bindings going out of scope):
public int getNamespaceCount()
public String getNamespacePrefix(int index)
public String getNamespaceURI(int index)
These methods return namespace information for the current element in a START_ELEMENT event or an END_ELEMENT event:
public String getNamespaceURI()
public String getPrefix()
This method returns a namespace context that can be used to query all the namespaces in scope inside a particular element (START_ELEMENT event or an END_ELEMENT event):
public NamespaceContext getNamespaceContext()
next()
(or nextTag()
).