Module java.xml

Interface Namespace

All Superinterfaces:
Attribute, XMLEvent, XMLStreamConstants

public interface Namespace
extends Attribute
An interface that contains information about a namespace. Namespaces are accessed from a StartElement.
Since:
1.6
See Also:
StartElement
  • Method Details

    • getPrefix

      String getPrefix()
      Gets the prefix, returns "" if this is a default namespace declaration.
    • getNamespaceURI

      String getNamespaceURI()
      Gets the uri bound to the prefix of this namespace
    • isDefaultNamespaceDeclaration

      boolean isDefaultNamespaceDeclaration()
      returns true if this attribute declares the default namespace