RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLDocument.LoadFromFile Method

Loads an XML document and activates it.

Pascal
procedure LoadFromFile(const AFileName: DOMString = '');
C++
__fastcall LoadFromFile(const DOMString AFileName = '');

Call LoadFromFile to load the XML document specified by AFileName and set the Active property to true so that you can examine or modify the document. 

AFileName is the name of the XML document to load from disk. If AFileName is an empty string, TXMLDocument uses the value of the FileName property. If AFileName is not an empty string, TXMLDocument changes the FileName property to AFileName. 

Once you have loaded an XML document, any changes you make to the document are not saved back to disk until you call the SaveToFile method. 

 

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