XMLElement
class in package klyn.io.xml.dom

    public class XMLElement extends XMLNode implements Element:

Object
└ XMLNode
└ XMLElement
All Implemented Interfaces: Element

DOM element implementation.

Example

    import klyn.io.xml.dom

    element = XMLElement("item", document)
    element.setAttribute("id", "42")

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
Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | schemaTypeInfo `schemaTypeInfo as TypeInfo:` | No summary.
public readonly property | tagName `tagName as String:` | No summary.

Inherited Properties
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 | XMLElement `XMLElement(tagName as String, ownerDocument as Document = null, namespaceURI as String = null):` | Creates an element.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | getAttribute `getAttribute(name as String) as String:` | No summary.
public | getAttributeNS `getAttributeNS(namespaceURI as String, localName as String) as String throws DOMException:` | Performs a DOM operation.
public | getAttributeNode `getAttributeNode(name as String) as Attr:` | No summary.
public | getAttributeNodeNS `getAttributeNodeNS(namespaceURI as String, localName as String) as Attr throws DOMException:` | Performs a DOM operation.
public | getElementsByTagName `getElementsByTagName(name as String) as NodeList:` | No summary.
public | getElementsByTagNameNS `getElementsByTagNameNS(namespaceURI as String, localName as String) as NodeList throws DOMException:` | Performs a DOM operation.
public | hasAttribute `hasAttribute(name as String) as Boolean:` | No summary.
public | hasAttributeNS `hasAttributeNS(namespaceURI as String, localName as String) as Boolean throws DOMException:` | Performs a DOM operation.
public | removeAttribute `removeAttribute(name as String) as Void throws DOMException:` | Performs a DOM operation.
public | removeAttributeNS `removeAttributeNS(namespaceURI as String, localName as String) as Void throws DOMException:` | Performs a DOM operation.
public | removeAttributeNode `removeAttributeNode(oldAttr as Attr) as Attr throws DOMException:` | Performs a DOM operation.
public | setAttribute `setAttribute(name as String, value as String) as Void throws DOMException:` | Performs a DOM operation.
public | setAttributeNS `setAttributeNS(namespaceURI as String, qualifiedName as String, value as String) as Void throws DOMException:` | Performs a DOM operation.
public | setAttributeNode `setAttributeNode(newAttr as Attr) as Attr throws DOMException:` | Performs a DOM operation.
public | setAttributeNodeNS `setAttributeNodeNS(newAttr as Attr) as Attr throws DOMException:` | Performs a DOM operation.
public | setIdAttribute `setIdAttribute(name as String, isId as Boolean) as Void throws DOMException:` | Performs a DOM operation.
public | setIdAttributeNS `setIdAttributeNS(namespaceURI as String, localName as String, isId as Boolean) as Void throws DOMException:` | Performs a DOM operation.
public | setIdAttributeNode `setIdAttributeNode(idAttr as Attr, isId as Boolean) as Void throws DOMException:` | Performs a DOM operation.

Inherited Methods
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