Xml.XMLIntf.IXMLNodeList.ReplaceNode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReplaceNode(const OldNode, NewNode: IXMLNode): IXMLNode;

C++

virtual _di_IXMLNode __fastcall ReplaceNode(const _di_IXMLNode OldNode, const _di_IXMLNode NewNode) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNodeList

Description

Replaces a specified node in the list with another node.

Call ReplaceNode to replace the node specified by OldNode with the node specified by NewNode.

OldNode is the node to replace. If OldNode does not appear in the list, then ReplaceNode adds the new node to the end of the list.

NewNode is the node to add to the list in place of OldNode.

ReplaceNode returns OldNode (even if OldNode did not appear in the list).

See Also