Package | dom.xpath |
Class | public class XPathNamespace |
Inheritance | XPathNamespace Node Object |
Introduced in: | DOM 3 XPath |
The core specification describes attributes of the Node interface that are different for different node types but does not describe XPATH_NAMESPACE_NODE, so here is a description of those attributes for this node type. All attributes of Node not described in this section have a null or false value.
ownerDocument matches the ownerDocument of the ownerElement even if the element is later adopted.
nodeName is always the string "#namespace".
prefix is the prefix of the namespace represented by the node.
localName is the same as prefix.
nodeType is equal to XPATH_NAMESPACE_NODE.
namespaceURI is the namespace URI of the namespace represented by the node.
nodeValue is the same as namespaceURI.
adoptNode, cloneNode, and importNode fail on this node type by raising a DOMException with the code NOT_SUPPORTED_ERR.
Note: In future versions of the XPath specification, the definition of a namespace node may be changed incomatibly, in which case incompatible changes to field values may be required to implement versions beyond XPath 1.0.
See also
Property | Defined By | ||
---|---|---|---|
DOM 1 Core attributes : NamedNodeMap [read-only]
Returns an unordered collection of Attr nodes. | Node | ||
Non-Standard baseName : DOMString [read-only]
Returns the base name for the name qualified with the namespace. | Node | ||
DOM 3 Core baseURI : DOMString [read-only]
The absolute base URI of this node or null if the implementation
wasn't able to obtain an absolute URI. | Node | ||
DOM 1 Core childNodes : NodeList [read-only]
Returns an ordered collection of node objects that are children of
the current element. | Node | ||
Non-Standard dataType : *
Specifies the data type for this node. | Node | ||
Non-Standard definition : Node [read-only]
Returns the definition of the node in the document type definition (DTD) or schema. | Node | ||
DOM 1 Core firstChild : Node [read-only]
Returns the node's first child in the tree, or null if the node is
childless. | Node | ||
DOM 1 Core lastChild : Node [read-only]
Returns the last child of a node. | Node | ||
DOM 2 Core localName : DOMString [read-only]
Returns the local part of the qualified name of this node. | Node | ||
DOM 2 Core namespaceURI : DOMString [read-only]
The namespace URI of the node, or null if it is unspecified (read-only). | Node | ||
DOM 1 Core nextSibling : Node [read-only]
Returns the node immediately following the specified one in its
parent's childNodes list, or null if the specified node is the
last node in that list. | Node | ||
DOM 1 Core nodeName : DOMString [read-only]
Returns the name of the current node as a string. | Node | ||
Non-Standard nodePrincipal : nsIPrincipal [read-only]
Returns the nsIPrincipal object representing current security
context of the node. | Node | ||
DOM 1 Core nodeType : Number [read-only]
Returns an integer code representing the type of the node. | Node | ||
Non-Standard nodeTypedValue : *
Contains the node value expressed in its defined data type. | Node | ||
Non-Standard nodeTypeString : DOMString [read-only]
Returns the node type in string form. | Node | ||
DOM 1 Core nodeValue : DOMString
Returns or sets the value of the current node. | Node | ||
DOM 1 Core ownerDocument : Document [read-only]
The Document object associated with this node. | Node | ||
DOM 3 XPath ownerElement : Element [read-only]
The Element on which the namespace was in scope when it was requested. | XPathNamespace | ||
DOM 1 Core parentNode : Node [read-only]
Returns the parent of the specified node in the DOM tree. | Node | ||
Non-Standard parsed : Boolean [read-only]
Indicates the parsed status of the node and child nodes. | Node | ||
DOM 2 Core prefix : DOMString
Returns the namespace prefix of the specified node, or null if no
prefix is specified. | Node | ||
DOM 1 Core previousSibling : Node [read-only]
Returns the node immediately preceding the specified one in its
parent's childNodes list, null if the specified node is the first
in that list. | Node | ||
Non-Standard specified : Boolean [read-only]
Indicates whether the node (usually an attribute) is explicitly specified or derived
from a default value in the document type definition (DTD) or schema. | Node | ||
Non-Standard text : DOMString
Represents the text content of the node or the concatenated text representing the node and its descendants. | Node | ||
DOM 3 Core textContent : DOMString
Gets or sets the text content of a node and its descendants. | Node | ||
Non-Standard xml : DOMString [read-only]
Contains the XML representation of the node and all its descendants. | Node |
Constant | Defined By | ||
---|---|---|---|
DOM 1 Core ATTRIBUTE_NODE : Number = 2 [static]
The node is an Attr. | Node | ||
DOM 1 Core CDATA_SECTION_NODE : Number = 4 [static]
The node is a CDATASection. | Node | ||
DOM 1 Core COMMENT_NODE : Number = 8 [static]
The node is a Comment. | Node | ||
DOM 1 Core DOCUMENT_FRAGMENT_NODE : Number = 11 [static]
The node is a DocumentFragment. | Node | ||
DOM 1 Core DOCUMENT_NODE : Number = 9 [static]
The node is a Document. | Node | ||
DOM 3 Core DOCUMENT_POSITION_CONTAINED_BY : Number = 16 [static]
The node is contained by the reference node. | Node | ||
DOM 3 Core DOCUMENT_POSITION_CONTAINS : Number = 8 [static]
The node contains the reference node. | Node | ||
DOM 3 Core DOCUMENT_POSITION_DISCONNECTED : Number = 1 [static]
The two nodes are disconnected. | Node | ||
DOM 3 Core DOCUMENT_POSITION_FOLLOWING : Number = 4 [static]
The node follows the reference node. | Node | ||
DOM 3 Core DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : Number = 32 [static]
The determination of preceding versus following is implementation-specific. | Node | ||
DOM 3 Core DOCUMENT_POSITION_PRECEDING : Number = 2 [static]
The second node precedes the reference node. | Node | ||
DOM 1 Core DOCUMENT_TYPE_NODE : Number = 10 [static]
The node is a DocumentType. | Node | ||
DOM 1 Core ELEMENT_NODE : Number = 1 [static]
The node is an Element. | Node | ||
DOM 1 Core ENTITY_NODE : Number = 6 [static]
The node is an Entity. | Node | ||
DOM 1 Core ENTITY_REFERENCE_NODE : Number = 5 [static]
The node is an EntityReference. | Node | ||
DOM 1 Core NOTATION_NODE : Number = 12 [static]
The node is a Notation. | Node | ||
DOM 1 Core PROCESSING_INSTRUCTION_NODE : Number = 7 [static]
The node is a ProcessingInstruction. | Node | ||
DOM 1 Core TEXT_NODE : Number = 3 [static]
The node is a Text node. | Node | ||
DOM 3 XPath XPATH_NAMESPACE_NODE : Number = 13 [static]
An integer indicating which type of node this is. | XPathNamespace |
DOM 3 XPath ownerElement | property |
ownerElement:Element
[read-only] Introduced in: | DOM 3 XPath |
The Element on which the namespace was in scope when it was requested. This does not change on a returned namespace node even if the document changes such that the namespace goes out of scope on that element and this node is no longer found there by XPath.
public function get ownerElement():Element
See also
DOM 3 XPath XPATH_NAMESPACE_NODE | Constant |
public static const XPATH_NAMESPACE_NODE:Number = 13
Introduced in: | DOM 3 XPath |
An integer indicating which type of node this is.
Note: There is currently only one type of node which is specific to XPath. The numbers in this list must not collide with the values assigned to core node types.
See also