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

TDOMDocument.GetDocumentElement

Gets the value for the DocumentElement property.

Declaration

Source position: laz2_dom.pas line 487

protected function TDOMDocument.GetDocumentElement: TDOMElement;

Function result

Value for the DocumentElement property.

Description

The return value is the first child node in the document which is a DOM Element node (NodeType is ELEMENT_NODE). Starts at FirstChild and continues to NextSibling until a match is found. The node is cast to the TDOMElement type used for the property value.

See also

TDOMDocument.DocumentElement

  

Gets the root element for the document.

TDOMNode.FirstChild

  

Gets the first child node for the current node.

TDOMNode.NextSibling

  

Next DOM Node at the same level in the DOM tree.

TDOMNode.NodeType

  

Node type for the DOM Node.

TDOMElement

  

Implements the DOM Element interface from the DOM specification.


Version 3.2 Generated 2024-02-25 Home