TDOMNode.NodeType property
Node type for the DOM Node.
Declaration
property NodeType: Integer read GetNodeType;Description
NodeType is a read-only
Integer property that
represents the DOM node type as defined in the DOM specification. The read
access specifier in TDOMNode is an abstract method, and must be implemented
in a descendent class to return the correct value for the DOM node
specializations.
DOM node specializations use the following values in the NodeType property:
| DOM Interface | NodeType Constant | NodeType Value |
| TDOMElement | ELEMENT_NODE | 1 |
| TDOMAttr | ATTRIBUTE_NODE | 2 |
| TDOMText | TEXT_NODE | 3 |
| TDOMCDATASection | CDATA_SECTION_NODE | 4 |
| TDOMEntityReference | ENTITY_REFERENCE_NODE | 5 |
| TDOMEntity | ENTITY_NODE | 6 |
| TDOMProcessingInstruction | PROCESSING_INSTRUCTION_NODE | 7 |
| TDOMComment | COMMENT_NODE name | 8 |
| TDOMDocument | DOCUMENT_NODE | 9 |
| TDOMDocumentType | DOCUMENT_TYPE_NODE | 10 |
| TDOMDocumentFragment | DOCUMENT_FRAGMENT_NODE | 11 |
| TDOMNotation | NOTATION_NODE | 12 |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
