RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLDocument.Refresh Method

Updates the parsed XML document to reflect external changes.

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

Call Refresh when the XML document specified by FileName has changed due to an external cause. Refresh updates the parsed version of the XML document (which can be traversed starting with DocumentElement) to reflect the current contents of the file specified by FileName

The Active property must be true when you call Refresh. If the XML document is not active when you call Refresh, TXMLDocument raises an EXMLDocError exception.

Note: Do not call Refresh after making changes directly to the XML property, because assigning a value to XML automatically closes the XML document. To refresh the XML document after assigning a new value to XML, set the Active property to true.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!