Specifications

Returns the list of child nodes of this element, in
document order or an empty list if the element has no
child nodes.
getChildNodes( ) : NodeList
Returns the first child node of this element or null if
there is none.
getFirstChild( ) : Node
Returns the last child node of this element or null if
there is none.
getLastChild( ) : Node
Appends a new child node to the list of children for this
element.
appendChild( new-child : Node )
Inserts a new child node before the specified reference
node, which must be in the list of children of this
element.
insertBefore( new-child : Node,
ref-child : Node )
Removes the specified node from the list of children of
this element, and returns the removed node.
removeChild( oldChild : Node ) : Node
Replaces the specified child of this element with another
node, and returns the removed node.
replaceChild( newChild : Node,
oldChild : Node ) : Node
Attributes
Returns the list of attributes of this element, in arbitrary
order. If there are no attributes, returns an empty list.
getAttributes( ) : AttrList
Adds the specified attribute to the element or replaces an
existing attribute with the same name.
addAttribute( attribute : Attr )
Returns the value for the element’s attribute with the
specified qualified name or null if there is no such attribute.
getAttributeValue( qualified-name
: String, prefix-map : Map ) :
String
If the qualified name includes a prefix it is resolved using
the map in the second argument, otherwise the second
argument may be null.
Adds an attribute to the element with the specified qualified
name and value or replaces an existing attribute with the
addAttribute( qualified-name :
String, prefix-map : Map, value :
String )
same name. If the qualified name includes a prefix it is
resolved using the map in the second argument, otherwise
the second argument may be null.
Text class
A Text object represents an XML text node.
Text inherits from the Node class, so all functions defined for Node can be used with Text.
430
Enfocus Switch 10