57 * <p>The core specification describes attributes of the <code>Node</code>
58 * interface that are different for different node node types but does not
59 * describe <code>XPATH_NAMESPACE_NODE</code>, so here is a description of
60 * those attributes for this node type. All attributes of <code>Node</code>
61 * not described in this section have a <code>null</code> or
62 * <code>false</code> value.
63 * <p><code>ownerDocument</code> matches the <code>ownerDocument</code> of the
64 * <code>ownerElement</code> even if the element is later adopted.
65 * <p><code>prefix</code> is the prefix of the namespace represented by the
66 * node.
67 * <p><code>nodeName</code> is the same as <code>prefix</code>.
68 * <p><code>nodeType</code> is equal to <code>XPATH_NAMESPACE_NODE</code>.
69 * <p><code>namespaceURI</code> is the namespace URI of the namespace
70 * represented by the node.
71 * <p><code>adoptNode</code>, <code>cloneNode</code>, and
72 * <code>importNode</code> fail on this node type by raising a
73 * <code>DOMException</code> with the code <code>NOT_SUPPORTED_ERR</code>.In
74 * future versions of the XPath specification, the definition of a namespace
75 * node may be changed incomatibly, in which case incompatible changes to
76 * field values may be required to implement versions beyond XPath 1.0.
77 * <p>See also the <a href='http://www.w3.org/2002/08/WD-DOM-Level-3-XPath-20020820'>Document Object Model (DOM) Level 3 XPath Specification</a>.
78 */
79 public interface XPathNamespace extends Node {
80 // XPathNodeType
81 /**
82 * The node is a <code>Namespace</code>.
83 */
84 public static final short XPATH_NAMESPACE_NODE = 13;
85
86 /**
87 * The <code>Element</code> on which the namespace was in scope when it
88 * was requested. This does not change on a returned namespace node even
89 * if the document changes such that the namespace goes out of scope on
90 * that element and this node is no longer found there by XPath.
91 */
92 public Element getOwnerElement();
93
94 }
|
57 * <p>The core specification describes attributes of the <code>Node</code>
58 * interface that are different for different node node types but does not
59 * describe <code>XPATH_NAMESPACE_NODE</code>, so here is a description of
60 * those attributes for this node type. All attributes of <code>Node</code>
61 * not described in this section have a <code>null</code> or
62 * <code>false</code> value.
63 * <p><code>ownerDocument</code> matches the <code>ownerDocument</code> of the
64 * <code>ownerElement</code> even if the element is later adopted.
65 * <p><code>prefix</code> is the prefix of the namespace represented by the
66 * node.
67 * <p><code>nodeName</code> is the same as <code>prefix</code>.
68 * <p><code>nodeType</code> is equal to <code>XPATH_NAMESPACE_NODE</code>.
69 * <p><code>namespaceURI</code> is the namespace URI of the namespace
70 * represented by the node.
71 * <p><code>adoptNode</code>, <code>cloneNode</code>, and
72 * <code>importNode</code> fail on this node type by raising a
73 * <code>DOMException</code> with the code <code>NOT_SUPPORTED_ERR</code>.In
74 * future versions of the XPath specification, the definition of a namespace
75 * node may be changed incomatibly, in which case incompatible changes to
76 * field values may be required to implement versions beyond XPath 1.0.
77 * <p>See also the <a href='https://www.w3.org/TR/DOM-Level-3-XPath/'>Document Object Model (DOM) Level 3 XPath Specification</a>.
78 */
79 public interface XPathNamespace extends Node {
80 // XPathNodeType
81 /**
82 * The node is a <code>Namespace</code>.
83 */
84 public static final short XPATH_NAMESPACE_NODE = 13;
85
86 /**
87 * The <code>Element</code> on which the namespace was in scope when it
88 * was requested. This does not change on a returned namespace node even
89 * if the document changes such that the namespace goes out of scope on
90 * that element and this node is no longer found there by XPath.
91 */
92 public Element getOwnerElement();
93
94 }
|