Xml.XMLDoc.TXMLDocument.Refresh
Delphi
procedure Refresh;
C++
void __fastcall Refresh();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLDocument |
Description
Updates the parsed XML document to reflect external changes.
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.