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

TXMLConfig.DeletePath

Deletes the DOM node at the specified path in the Document.

Declaration

Source position: laz2_xmlcfg.pas line 137

public procedure TXMLConfig.DeletePath(

  const APath: string

);

Arguments

APath

  

Path specifier for the DOM node to locate in the Document.

Description

DeletePath is a procedure used to delete the DOM node at the specified path in the Document. APath contains the path specifier that describes the hierarchy of elements and attributes needed to access the DOM node. See TXMLConfig Path Syntax for details about path specifiers.

DeletePath calls InternalFindNode to get the node removed in the method. The node is removed from its parent DOM node, and the value in Modified is set to True. The InvalidatePathCache method is called to reflect the change in the Document. InternalCleanNode is called to ensure that the node is removed from the parent DOM node in Document.

Remark: No actions are performed in the method when a node for the specified path cannot be located, or the node does not have a parent node (it is the root node in the Document).

See also

TXMLConfig.Document

  

XML document used for the class instance.

TXMLConfig.InternalFindNode

  

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

TXMLConfig.InternalCleanNode

  

Removes the specified node and all of its children from the Document.

TXMLConfig.InvalidatePathCache

  

Removes cached DOM nodes for paths in the XML configuration file.

TXMLConfig-PathSyntax

  

TXMLConfig Path Syntax.


Version 4.0 Generated 2025-05-03 Home