Main

DOMNode Specs

DOMNode

Properties:
(string) nodeName - read only
(string) nodeValue
(long) nodeType - read only
(DOMNode) parentNode - read only
(DOMNodeList) childNodes - read only
(DOMNode) firstChild - read only
(DOMNode) lastChild - read only
(DOMNode) previousSibling - read only
(DOMNode) nextSibling - read only
(DOMNamedNodeMap) attributes - read only
(DOMDocument) ownerDocument - read only
(string) namespaceUri - read only
(string) prefix
(string) localName - read only
(string) baseURI - not implemented - read only
(string) textContent - currently only read implemented

Methods:

(DOMNode) insertBefore(DOMNode newChild, DOMNode refChild) inserts new child before the reference node. Returns newChild
(DOMNode) replaceChild(DOMNode newChild, DOMNode oldChild) replaces oldChild with newChild. Returns oldChild
(DOMNode) removeCchild(DOMNode oldChild) unlinks from document tree and returns oldChild
(DOMNode) appendChild(DOMNode newChild) appends and returns newChild
(bool) hasChildNodes() Indicates if node has children
(DOMNode) cloneNode([boolean deep]) copies node. deep indicates wether children as also cloned. Default FALSE. Returns new copied Node
(void) normalize() Normalizes node and its children
(bool) isSupported(string feature, string version) Indicates if feature is availble in version
(bool) hasAttributes() Indicates if node has attributes
(long) compareDocumentPosition(DOMNode other) Not Currently Implemented
(bool) isSameNode(DOMNode other) Indicates if other is the same node, not a copy
(string) lookupPrefix(string namespaceURI) returns prefix for namespaceURI
(bool) isDefaultNamespace(string namespaceURI) Not Currently Implemented
(string) lookupNamespaceURI(string prefix) returns namespaceURI for prefix
(bool) isEqualNode(DOMNode other) Not Currently Implemented
(DOMNode) getFeature(string feature, string version) Not Currently Implemented