Specifications

Creating new objects
Returns a new empty prefix map object.
createEmptyMap( ) : Map
Returns a new prefix map object that already contains all
mappings that occur in the document.
createDefaultMap( ) : Map
Returns a newly created element node with the specified
name, owned by this document. If the element name is
createElement( qualified-name :
String, prefix-map : Map ) :
Element
qualified its namespace prefix must occur in the map
provided in the second argument. If the name is not
qualified the second argument may be null.
Returns a newly created text node with the specified text
content, owned by this document.
createText( value : String ) : Text
Returns a newly created comment node with the specified
content (i.e. all the characters that appear between the
'<!--' and '-->'), owned by this document.
createComment( value : String ) :
Comment
Returns a clone of the specified node that is owned by
this document. If deep is true, all descendant nodes are
cloned as well.
cloneNode( node : Node, deep :
Boolean ) : Node
Element class
An Element object represents an XML element node. An element may have other Element, Comment
and Text nodes as children. Furthermore an element may have attributes (these are not considered
to be children).
Element inherits from the Node class, so all functions defined for Node can be used with Element.
Name
Returns the qualified element name, i.e. including the
namespace prefix if there is one.
getQualifiedName( ) : String
Returns the element name without the namespace prefix.
getBaseName( ) : String
Returns the namespace prefix or the empty string if there is
none.
getPrefix( ) : String
Returns the namespace URI corresponding to namespace
prefix or the default namespace URI for the document if there
getNamespaceURI( ) : String
is no prefix or the empty string if there is no prefix and no
default namespace.
Child nodes
Returns true if this element has any child nodes, and
false if not.
hasChildNodes( ) : Boolean
429
Enfocus Switch 10