com.sun.xml.tree
Interface NamespaceScoped
- All Known Subinterfaces:
- ElementEx
- public abstract interface NamespaceScoped
- extends Node
This interface is supported by elements and attributes whose names
are scoped according to the XML Namespaces specification.
Fields inherited from class org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
Method Summary |
java.lang.String |
getLocalName()
Returns the "local part" of the object's scoped name, without
any namespace prefix. |
java.lang.String |
getNamespace()
Return the XML namespace name (a URI) associated with this object,
or null for the case of the default document namespace. |
Methods inherited from interface org.w3c.dom.Node |
appendChild,
cloneNode,
getAttributes,
getChildNodes,
getFirstChild,
getLastChild,
getNextSibling,
getNodeName,
getNodeType,
getNodeValue,
getOwnerDocument,
getParentNode,
getPreviousSibling,
hasChildNodes,
insertBefore,
removeChild,
replaceChild,
setNodeValue |
getLocalName
public java.lang.String getLocalName()
- Returns the "local part" of the object's scoped name, without
any namespace prefix.
getNamespace
public java.lang.String getNamespace()
- Return the XML namespace name (a URI) associated with this object,
or null for the case of the default document namespace. This is
computed from this node and its ancestors.
- Throws:
- IllegalStateException - Thrown when the namespace
prefix for this element is not known.
Submit Feedback to xml-feedback@java.sun.com
Copyright © 1998-1999 Sun Microsystems, Inc. All Rights Reserved.
Sun Microsystems, Inc.
901 San Antonio Road
Palo Alto, California, 94303, U.S.A.