public class XMLElement extends XMLNode implements Element:
DOM element implementation.
@example `klyn import klyn.io.xml.dom
element = XMLElement("item", document) element.setAttribute("id", "42")
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | schemaTypeInfoschemaTypeInfo as TypeInfo: |
No summary. |
| public readonly property | tagNametagName as String: |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | XMLElementXMLElement(tagName as String, ownerDocument as Document = null, namespaceURI as String = null): |
Creates an element. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | getAttribute | No summary. |
| public | getAttributeNSgetAttributeNS(namespaceURI as String, localName as String) as String throws DOMException: |
Performs a DOM operation. |
| public | getAttributeNode | No summary. |
| public | getAttributeNodeNSgetAttributeNodeNS(namespaceURI as String, localName as String) as Attr throws DOMException: |
Performs a DOM operation. |
| public | getElementsByTagName | No summary. |
| public | getElementsByTagNameNSgetElementsByTagNameNS(namespaceURI as String, localName as String) as NodeList throws DOMException: |
Performs a DOM operation. |
| public | hasAttribute | No summary. |
| public | hasAttributeNShasAttributeNS(namespaceURI as String, localName as String) as Boolean throws DOMException: |
Performs a DOM operation. |
| public | removeAttributeremoveAttribute(name as String) as Void throws DOMException: |
Performs a DOM operation. |
| public | removeAttributeNSremoveAttributeNS(namespaceURI as String, localName as String) as Void throws DOMException: |
Performs a DOM operation. |
| public | removeAttributeNoderemoveAttributeNode(oldAttr as Attr) as Attr throws DOMException: |
Performs a DOM operation. |
| public | setAttributesetAttribute(name as String, value as String) as Void throws DOMException: |
Performs a DOM operation. |
| public | setAttributeNSsetAttributeNS(namespaceURI as String, qualifiedName as String, value as String) as Void throws DOMException: |
Performs a DOM operation. |
| public | setAttributeNodesetAttributeNode(newAttr as Attr) as Attr throws DOMException: |
Performs a DOM operation. |
| public | setAttributeNodeNSsetAttributeNodeNS(newAttr as Attr) as Attr throws DOMException: |
Performs a DOM operation. |
| public | setIdAttributesetIdAttribute(name as String, isId as Boolean) as Void throws DOMException: |
Performs a DOM operation. |
| public | setIdAttributeNSsetIdAttributeNS(namespaceURI as String, localName as String, isId as Boolean) as Void throws DOMException: |
Performs a DOM operation. |
| public | setIdAttributeNodesetIdAttributeNode(idAttr as Attr, isId as Boolean) as Void throws DOMException: |
Performs a DOM operation. |