Sign in Join
FPDoc Onlineexperiment

TDOMDocument.GetDocumentElement function

Member of TDOMDocumentprotectedIn unit Laz2_DOM

Gets the value for the DocumentElement property.

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.