Table 2


Property Description
nodeName Returns the name for current node. This value is read only and cannot be set.
nodeValue Returns the value for current node. This value is read only and cannot be set.
nodeType Returns an integer value representing the node's type. The integer is assigned to a constant according to the following:

1 = ELEMENT_NODE
2 = ATTRIBUTE_NODE
3 = TEXT_NODE
4 = CDATA_SECTION_NODE
5 = ENTITY_REFERENCE_NODE
6 = ENTITY_NODE
7 = PROCESSING_INSTRUCTION_NODE
8 = COMMENT_NODE
8 = DOCUMENT_NODE
10 = DOCUMENT_TYPE_NODE
11 = DOCUMENT_FRAGMENT_NODE
12 = NOTATION_NODE

parentNode Returns the parent of the current node. All nodes, except Document, DocumentFragment, and Attr may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.
childNodes Returns a NodeList containing all children of the current node.
firstChild Returns the first child of the current node. A null is returned if there is no child node.
lastChild Returns the first child of the current node. A null is returned if there is no child node.
previousSibling Returns the node immediately preceding the current node, or null if none exists.
nextSibling Returns the node immediately following the current node, or null if none exists.
attributes Returns a NamedNodeMap containing the attributes of the current node.
ownerDocument Returns the Document object associated with the current node.