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

TXMLConfig.SetPathNodeCache

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

Declaration

Source position: laz2_xmlcfg.pas line 89

protected procedure TXMLConfig.SetPathNodeCache(

  Index: Integer;

  aNode: TDOMNode;

  aNodeSearchName: string = ''

);

Arguments

Index

  

Position in the cache to start looking for the specified DOM node.

aNodeSearchName

  

DOM node name to locate in the cache.

Description

SetPathNodeCache is a procedure used to ensure that the DOM node with the specified position and name is present in the node cache for the class instance. SetPathNodeCache adjusts the length of the internal node cache when needed to accommodate a new DOM node. InvalidateCacheTilEnd is called to refresh the cache when the Node is not found starting at the specified position.

SetPathNodeCache is used in the implementation of the InternalFindNode method.

See also

TXMLConfig.InternalFindNode

  

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

TXmlConfig.TNodeCache

  

Advanced record type used to implement an array-based TDomNode cache.


Version 4.0 Generated 2025-05-03 Home