[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMNode.NodeType

Node type for the DOM Node.

Declaration

Source position: laz2_dom.pas line 262

public property TDOMNode.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

Version 3.2 Generated 2024-02-25 Home