Sign in Join
FPDoc Onlineexperiment

TXMLConfig.DeletePath procedure

Member of TXMLConfigpublicIn unit Laz2_XMLCfg

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

Declaration

pascal
procedure 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.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.