[Overview][Classes][Procedures and functions][Index] |
Finds (and optionally caches) a child node starting at the specified index position using the specified XPath node name and position.
Source position: laz2_xmlcfg.pas line 96
protected function TXMLConfig.FindChildNode( |
PathIndex: Integer; |
const aName: string; |
CreateNodes: Boolean = False |
):TDOMNode; |
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. |
CreateNodes |
|
True if cache entries are created for the node(s) which match the arguments to the function. |
Child DOM node which matches the expression and position indicated in the function arguments.
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.
|
Searches for the DOM node with the specified path, and updates the node cache. |
Version 4.0 | Generated 2025-05-03 | Home |