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

TXMLConfig.FindNode

Retrieves the DOM node with the specified path.

Declaration

Source position: laz2_xmlcfg.pas line 139

public function TXMLConfig.FindNode(

  const APath: string;

  PathHasValue: Boolean

):TDOMNode;

Arguments

APath

  

Path to the DOM node retrieve in the method.

PathHasValue

  

Indicates if the path is checked for a value.

Function result

DOM node stored at the specified path.

Description

FindNode is a TDOMNode function used to retrieve the DOM node stored at the path specified in APath in the Document instance. FindNode calls InternalFindNode to locate the DOM node used as the return value for the method.

APath contains the path specifier used to locate the DOM node. It contains the hierarchy of elements and attributes needed to access the DOM node, as described in TXMLConfig Path Syntax.

PathHasValue indicates if APath includes a specifier for the attribute where the value is stored. When PathHasValue is True, the trailing path identifier (for the attribute name) is removed from APath. Otherwise, the value in APath is used in its unmodified state.

FindNode is used in the implementation of the DeleteValue, GetChildCount, HasPath, and HasChildPaths methods.

See also

TXMLConfig.DeleteValue

  

Deletes the value stored in the DOM node at the specified path.

TXMLConfig.GetChildCount

  

Gets the number of child nodes used in the DOM node at the specified path.

TXMLConfig.HasPath

  

Indicates if a DOM node exists for the specified path.

TXMLConfig.HasChildPaths

  

Indicates if the DOM node at the specified path has child nodes.


Version 4.0 Generated 2025-05-03 Home