javax.xml.stream.events

Interface Namespace

public interface Namespace extends XMLEvent

A namespace declaration event.
Method Summary
StringgetNamespaceURI()
Returns the namespace URI.
StringgetPrefix()
Returns the namespace prefix, if any.
booleanisDefaultNamespaceDeclaration()
Indicates whether this event declares the default namespace.

Method Detail

getNamespaceURI

public String getNamespaceURI()
Returns the namespace URI.

getPrefix

public String getPrefix()
Returns the namespace prefix, if any.

isDefaultNamespaceDeclaration

public boolean isDefaultNamespaceDeclaration()
Indicates whether this event declares the default namespace.