Xml.XMLDoc.TXMLDocument.LoadFromFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromFile(const AFileName: DOMString = '');

C++

void __fastcall LoadFromFile(const System::UnicodeString AFileName = System::UnicodeString());

Properties

Type Visibility Source Unit Parent
procedure
function
public
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLDocument

Description

Loads an XML document and activates it.

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.

See Also

Code Examples