Element functions

The table below lists all the Element built-in functions (in this namespace: Element).

Element is a subtype of XMLNode.

An XML element node.
27 functions
Function name Description
Element.attributes This is inherited from the XMLNode object. The attributes of this node.
Element.childNodes This is inherited from the XMLNode object. The children of this node.
Element.firstChild This is inherited from the XMLNode object. The first child of this node, if any.
Element.getAttribute Get the value of the attribute of this element with the given name, if any.
Element.getAttributeNode Get the attribute of this element with the given name, if any.
Element.getAttributeNodeNS Get the attribute of this element with the given localname and namespace URI, if any.
Element.getAttributeNS Get the value of the attribute of this element with the given localname and namespace URI, if any.
Element.getElementsByTagName Return all the elements that are descendants of the current element that have the given name.
Element.getElementsByTagNameNS Return all the elements that are descendants of the current element that have the given localname and namespace URI.
Element.hasAttribute Whether this element has an attribute with the given name.
Element.hasAttributeNS Whether this element has an attribute the given localname and namespace URI.
Element.hasAttributes This is inherited from the XMLNode object. Whether this node has attributes.
Element.hasChildNodes This is inherited from the XMLNode object. Whether this node has any children.
Element.isEqualNode This is inherited from the XMLNode object. Whether this node is equal to another node.
Element.isSameNode This is inherited from the XMLNode object. Whether this node is the same exact node as another node.
Element.lastChild This is inherited from the XMLNode object. The last child of this node, if any.
Element.localName This is inherited from the XMLNode object. Return the local name of this node.
Element.namespaceURI This is inherited from the XMLNode object. Return the namespace URI of this node.
Element.nextSibling This is inherited from the XMLNode object. The node that is the immediately following sibling of this node, if any.
Element.nodeName This is inherited from the XMLNode object. The DOM name of the node.
Element.nodeValue This is inherited from the XMLNode object. The DOM value of the node.
Element.ownerDocument This is inherited from the XMLNode object. The document node containing this node, if any.
Element.parentNode This is inherited from the XMLNode object. The node that is this node's parent.
Element.prefix This is inherited from the XMLNode object. Return the namespace prefix of this node.
Element.previousSibling This is inherited from the XMLNode object. The node that is the immediately preceding sibling of this node, if any.
Element.schemaTypeInfo The schema type information associated with this element.
Element.textContent This is inherited from the XMLNode object. The DOM text value of the node.
Powered by MarkLogic Server | Terms of Use | Privacy Policy