DOMElement
class in package klyn.io.xml.dom

    public class DOMElement extends XMLElement:

Object
└ XMLNode
└ XMLElement
└ DOMElement

DOM element returned by `DOMParser`.

It keeps the DOM `Element` contract while exposing descendant queries as `DOMNodeList`, which is also a Klyn `List<DOMElement>`.

Example

    import klyn.io.xml.dom

    element = DOMElement("root", DOMDocument())
    print(element.tagName)

Inherited Attributes
attribute Inherited Attributes from Node: ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Inherited Properties
property Inherited Properties from XMLElement: schemaTypeInfo, tagName
property Inherited Properties from XMLNode: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
property Inherited Properties from Element: schemaTypeInfo, tagName
property Inherited Properties from Object: type
property Inherited Properties from Node: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DOMElement `DOMElement(tagName as String, ownerDocument as Document = null, namespaceURI as String = null):` | Creates a DOM parser element.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | getElementsByTagName `getElementsByTagName(name as String) as DOMNodeList:` | Returns descendant elements matching a tag name.
public | getElementsByTagNameNS `getElementsByTagNameNS(namespaceURI as String, localName as String) as DOMNodeList throws DOMException:` | Returns descendant elements matching a namespace URI and local name.

Inherited Methods
method Inherited Methods from XMLElement: getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNS, setIdAttributeNode
method Inherited Methods from XMLNode: _collectElementsByTagName, _collectElementsByTagNameNS, _setNamespace, _setOwnerDocument, _setOwnerDocumentRecursive, _setParentNode, appendChild, cloneNode, compareDocumentPosition, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData
method Inherited Methods from Element: getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNS, setIdAttributeNode
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml
method Inherited Methods from Node: appendChild, cloneNode, compareDocumentPosition, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData