public interface Node:
Base interface for all DOM tree nodes.
import org.w3c.dom node as Node = document.documentElement print(node.nodeName)
| Modifier and Type | Member | Description |
|---|---|---|
| public static readonly | ATTRIBUTE_NODEATTRIBUTE_NODE as Int = 2 |
No summary. |
| public static readonly | CDATA_SECTION_NODECDATA_SECTION_NODE as Int = 4 |
No summary. |
| public static readonly | COMMENT_NODECOMMENT_NODE as Int = 8 |
No summary. |
| public static readonly | DOCUMENT_FRAGMENT_NODEDOCUMENT_FRAGMENT_NODE as Int = 11 |
No summary. |
| public static readonly | DOCUMENT_NODEDOCUMENT_NODE as Int = 9 |
No summary. |
| public static readonly | DOCUMENT_POSITION_CONTAINED_BYDOCUMENT_POSITION_CONTAINED_BY as Int = 16 |
No summary. |
| public static readonly | DOCUMENT_POSITION_CONTAINSDOCUMENT_POSITION_CONTAINS as Int = 8 |
No summary. |
| public static readonly | DOCUMENT_POSITION_DISCONNECTEDDOCUMENT_POSITION_DISCONNECTED as Int = 1 |
Bit-mask values returned by compareDocumentPosition. |
| public static readonly | DOCUMENT_POSITION_FOLLOWINGDOCUMENT_POSITION_FOLLOWING as Int = 4 |
No summary. |
| public static readonly | DOCUMENT_POSITION_IMPLEMENTATION_SPECIFICDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC as Int = 32 |
No summary. |
| public static readonly | DOCUMENT_POSITION_PRECEDINGDOCUMENT_POSITION_PRECEDING as Int = 2 |
No summary. |
| public static readonly | DOCUMENT_TYPE_NODEDOCUMENT_TYPE_NODE as Int = 10 |
No summary. |
| public static readonly | ELEMENT_NODEELEMENT_NODE as Int = 1 |
Numeric node type constants defined by DOM Core. |
| public static readonly | ENTITY_NODEENTITY_NODE as Int = 6 |
No summary. |
| public static readonly | ENTITY_REFERENCE_NODEENTITY_REFERENCE_NODE as Int = 5 |
No summary. |
| public static readonly | NOTATION_NODENOTATION_NODE as Int = 12 |
No summary. |
| public static readonly | PROCESSING_INSTRUCTION_NODEPROCESSING_INSTRUCTION_NODE as Int = 7 |
No summary. |
| public static readonly | TEXT_NODETEXT_NODE as Int = 3 |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | attributesattributes as NamedNodeMap |
Attributes map for element nodes, or null. |
| public readonly property | baseURIbaseURI as String |
Base URI associated with this node. |
| public readonly property | childNodeschildNodes as NodeList |
Ordered child node list. |
| public readonly property | firstChildfirstChild as Node |
First child node, or null. |
| public readonly property | lastChildlastChild as Node |
Last child node, or null. |
| public readonly property | localNamelocalName as String |
Local name of this node. |
| public readonly property | namespaceURInamespaceURI as String |
Namespace URI of this node, or null. |
| public readonly property | nextSiblingnextSibling as Node |
Next sibling node, or null. |
| public readonly property | nodeNamenodeName as String |
Qualified name of this node. |
| public readonly property | nodeTypenodeType as Int |
Numeric node type. |
| public property | nodeValuenodeValue as String |
Node value, when the node kind carries a scalar value. |
| public readonly property | ownerDocumentownerDocument as Document |
Owner document of this node. |
| public readonly property | parentNodeparentNode as Node |
Parent node, or null for detached/root nodes. |
| public property | prefixprefix as String |
Namespace prefix of this node. |
| public readonly property | previousSiblingpreviousSibling as Node |
Previous sibling node, or null. |
| public property | textContenttextContent as String |
Concatenated text content of this node. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | appendChildappendChild(newChild as Node) as Node throws DOMException |
Appends a child node. |
| public | cloneNode | Clones this node. |
| public | compareDocumentPositioncompareDocumentPosition(other as Node) as Int throws DOMException |
Compares document order with another node. |
| public | getAttribute | Returns an element attribute value when this node is an element. |
| public | getFeature | Returns a specialized feature object when available. |
| public | getUserData | Returns application data associated with this node. |
| public | hasAttributeshasAttributes() as Boolean |
Indicates whether this node has attributes. |
| public | hasChildNodeshasChildNodes() as Boolean |
Indicates whether this node has children. |
| public | insertBeforeinsertBefore(newChild as Node, refChild as Node) as Node throws DOMException |
Inserts a node before a reference child. |
| public | isDefaultNamespace | Indicates whether the namespace URI is the default namespace. |
| public | isEqualNode | Tests structural equality with another node. |
| public | isSameNode | Tests object identity with another node. |
| public | isSupported | Indicates whether a DOM feature is supported. |
| public | lookupNamespaceURI | Resolves a namespace URI for a prefix. |
| public | lookupPrefix | Resolves a prefix for a namespace URI. |
| public | normalizenormalize() as Void |
Normalizes adjacent text nodes in this subtree. |
| public | removeChildremoveChild(oldChild as Node) as Node throws DOMException |
Removes a child node. |
| public | replaceChildreplaceChild(newChild as Node, oldChild as Node) as Node throws DOMException |
Replaces one child node by another. |
| public | setUserDatasetUserData(key as String, data as Object, handler as UserDataHandler) as Object |
Associates application data with this node. |