XMLElement
classin packageklyn.io.xml.dom
public class XMLElement extends XMLNode implements Element
└ 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
attributeInherited 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
propertyInherited Properties from XMLNode: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
propertyInherited Properties from Object: type
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 override 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
methodInherited Methods from XMLNode: _collectElementsByTagName, _collectElementsByTagNameNS, _setNamespace, _setOwnerDocument, _setOwnerDocumentRecursive, _setParentNode, appendChild, cloneNode, compareDocumentPosition, getAttribute, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml