The DOMNode classDOMNodeClass synopsisDOMNodeDOMNodePropertiespublicreadonlystringnodeNamepublicstringnodeValuepublicreadonlyintnodeTypepublicreadonlyDOMNodeparentNodepublicreadonlyDOMNodeListchildNodespublicreadonlyDOMNodefirstChildpublicreadonlyDOMNodelastChildpublicreadonlyDOMNodepreviousSiblingpublicreadonlyDOMNodenextSiblingpublicreadonlyDOMNamedNodeMapattributespublicreadonlyDOMDocumentownerDocumentpublicreadonlystringnamespaceURIpublicstringprefixpublicreadonlystringlocalNamepublicreadonlystringbaseURIpublicstringtextContentMethods
&reftitle.properties;
nodeNameReturns the most accurate name for the current node typenodeValueThe value of this node, depending on its typenodeTypeGets the type of the node. One of the predefined XML_xxx_NODE constantsparentNodeThe parent of this nodechildNodes
A DOMNodeList that contains all
children of this node. If there are no children, this is an empty
DOMNodeList.
firstChild
The first child of this node. If there is no such node, this
returns &null;.
lastChildThe last child of this node. If there is no such node, this returns &null;.previousSibling
The node immediately preceding this node. If there is no such
node, this returns &null;.
nextSibling
The node immediately following this node. If there is no such
node, this returns &null;.
attributes
A DOMNamedNodeMap containing the
attributes of this node (if it is a DOMElement)
or &null; otherwise.
ownerDocumentThe DOMDocument object associated with this node.namespaceURIThe namespace URI of this node, or &null; if it is unspecified.prefixThe namespace prefix of this node, or &null; if it is unspecified.localNameReturns the local part of the qualified name of this node.baseURI
The absolute base URI of this node or &null; if the implementation
wasn't able to obtain an absolute URI.
textContentThis attribute returns the text content of this node and its descendants.
&reftitle.seealso;
W3C specification of Node
&reference.dom.entities.domnode;