public interface Element extends Node:
DOM element node.
import org.w3c.dom
element as Element = document.createElement("item")
element.setAttribute("id", "42")| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | schemaTypeInfoschemaTypeInfo as TypeInfo |
Schema type information associated with this element. |
| public readonly property | tagNametagName as String |
Qualified element tag name. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | getAttribute | Returns an attribute value by name. |
| public | getAttributeNSgetAttributeNS(namespaceURI as String, localName as String) as String throws DOMException |
Returns an attribute value by namespace URI and local name. |
| public | getAttributeNode | Returns an attribute node by name. |
| public | getAttributeNodeNSgetAttributeNodeNS(namespaceURI as String, localName as String) as Attr throws DOMException |
Returns a namespace-aware attribute node. |
| public | getElementsByTagName | Returns descendant elements matching the tag name. |
| public | getElementsByTagNameNSgetElementsByTagNameNS(namespaceURI as String, localName as String) as NodeList throws DOMException |
Returns descendant elements matching namespace URI and local name. |
| public | hasAttribute | Indicates whether an attribute exists by name. |
| public | hasAttributeNShasAttributeNS(namespaceURI as String, localName as String) as Boolean throws DOMException |
Indicates whether a namespace-aware attribute exists. |
| public | removeAttributeremoveAttribute(name as String) as Void throws DOMException |
Removes an attribute by name. |
| public | removeAttributeNSremoveAttributeNS(namespaceURI as String, localName as String) as Void throws DOMException |
Removes a namespace-aware attribute. |
| public | removeAttributeNoderemoveAttributeNode(oldAttr as Attr) as Attr throws DOMException |
Removes an attribute node. |
| public | setAttributesetAttribute(name as String, value as String) as Void throws DOMException |
Sets or creates an attribute by name. |
| public | setAttributeNSsetAttributeNS(namespaceURI as String, qualifiedName as String, value as String) as Void throws DOMException |
Sets or creates a namespace-aware attribute. |
| public | setAttributeNodesetAttributeNode(newAttr as Attr) as Attr throws DOMException |
Adds or replaces an attribute node. |
| public | setAttributeNodeNSsetAttributeNodeNS(newAttr as Attr) as Attr throws DOMException |
Adds or replaces a namespace-aware attribute node. |
| public | setIdAttributesetIdAttribute(name as String, isId as Boolean) as Void throws DOMException |
Marks an attribute as an identifier attribute. |
| public | setIdAttributeNSsetIdAttributeNS(namespaceURI as String, localName as String, isId as Boolean) as Void throws DOMException |
Marks a namespace-aware attribute as an identifier attribute. |
| public | setIdAttributeNodesetIdAttributeNode(idAttr as Attr, isId as Boolean) as Void throws DOMException |
Marks an attribute node as an identifier attribute. |