DomElement
class in package klyn.io.xml.dom

    public class DomElement extends XMLElement:

Object
└ XMLNode
└ XMLElement
└ DomElement

Compatibility DOM element class returned by `DOMParser`.

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

@example ```klyn import klyn.io.xml.dom

element = DomElement("root", DomDocument()) print(element.tagName)

Attributes inherited 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
Properties inherited from XMLElement: schemaTypeInfo, tagName
Properties inherited from XMLNode: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Properties inherited from Element: schemaTypeInfo, tagName
Properties inherited from Object: type
Properties inherited 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.

Methods inherited from XMLElement: getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNS, setIdAttributeNode
Methods inherited 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
Methods inherited from Element: getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNS, setIdAttributeNode
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml
Methods inherited from Node: appendChild, cloneNode, compareDocumentPosition, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData