Xml.XMLDoc.TXMLNode.ClearDocumentRef

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ClearDocumentRef;

C++

void __fastcall ClearDocumentRef();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

Sets the value of OwnerDocument to nil (Delphi) or NULL (C++).

Applications can't call this protected method. The document that contains this node calls ClearDocumentRef when it is freed so that the node does not maintain a reference to a non-existent document.

In addition to setting the OwnerDocument property to nil (Delphi) or NULL (C++), ClearDocumentRef propagates this call to all of this nodes child nodes and attribute nodes.

See Also