Sign in Join
FPDoc Onlineexperiment

TXMLConfig.FindChildNode function

Member of TXMLConfigprotectedIn unit Laz2_XMLCfg

Finds (and optionally caches) a child node starting at the specified index position using the specified XPath node name and position.

Declaration

pascal
function FindChildNode(PathIndex: Integer; const aName: string; 
 CreateNodes: Boolean=False): TDOMNode

Arguments

PathIndex

Position for the first child node in the list of nodes examined in the method.

aName

XPATH expression which indicates the node name and the predicate which indicates the position for the selected child node.

CreateNodesTrue if cache entries are created for the node(s) which match the arguments to the function.

Function result

Child DOM node which matches the expression and position indicated in the function arguments.

Description

FindChildNode is a TDOMNode function used to retrieve (and optionally cache) a DOM node which matches the XPATH expression in AName.

PathIndex contains the ordinal position for the first child node examined in the list of child nodes. It is a 0-based value.

AName can contain the name for a child and and a predicate with the index position in the list of nodes. For example: 'NodeName[4]'. Please note that positions in XPATH start at 1 instead of 0 as used in Pascal.

See also

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