Element

Element


Represents the element object.

Public:

Properties:

NameDescription
ownerDocument (get)Returns reference to the owner document object. 
parentNode (get)Returns the parent node (for nodes that can have parents). 
text (get)Returns the string representing the text contents of this node. 
text (let)Sets the text contents of this node. 

Methods:

NameDescription
appendChildAppends newChild as the last child of this node. 
getAttributeRetrieves the value of the named attribute. 
removeChildRemoves the specified child node from the list of children and returns it. 
selectNodesApplies the specified pattern-matching operation to this node's context and returns the list of matching nodes. 
selectSingleNodeApplies the specified pattern to this node's context and returns the first matching node. 
setAttributeSets the value of the named attribute.