RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.ClearDocumentRef Method

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

Pascal
procedure ClearDocumentRef;
C++
__fastcall ClearDocumentRef();

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!