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

TXMLConfig.FindChildNode

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

Declaration

Source position: laz2_xmlcfg.pas line 96

protected function TXMLConfig.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.

CreateNodes

  

True 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

TXMLConfig.InternalFindNode

  

Searches for the DOM node with the specified path, and updates the node cache.


Version 4.0 Generated 2025-05-03 Home