TXMLConfig.FindNode function
Retrieves the DOM node with the specified path.
Declaration
function FindNode(const APath: string; PathHasValue: Boolean): TDOMNodeArguments
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
