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

TXMLConfig.InternalFindNode

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

Declaration

Source position: laz2_xmlcfg.pas line 93

protected function TXMLConfig.InternalFindNode(

  const APath: string;

  PathLen: Integer;

  CreateNodes: Boolean = False

):TDOMNode;

Arguments

APath

  

Path specifier for the DOM node.

PathLen

  

Length of the path specifier.

CreateNodes

  

Indicates if missing DOM nodes in Document are created.

Function result

DOM node located for the specified path.

Description

InternalFindNode is a TDOMNode function used to locate the node stored at the path specified in Document. InternalFindNode ensures that the node cache for the class is updated to include the TDOMNode at APath when it is accessed in the method. It also ensures that all element nodes for the specifier in APath are included in the cache as well. The FindChildNode method is used to locate TDOMNodes in the hierarchy. When CreateNodes is True, any missing DOM nodes in the hierarchy are created.

InternalFindNode is used in the implementation of the GetValue, SetValue, GetListItemCount, DeletePath, and FindNode methods.

See also

TXMLConfig.SetPathNodeCache

  

Ensures a DOM node is present in the internal cache for the class instance.

TXMLConfig.GetCachedPathNode

  

Gets a cached DOM node starting at the specified position in the cache.

TXMLConfig.FindChildNode

  

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


Version 4.0 Generated 2025-05-03 Home