RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLDocument.LoadFromXML Method (AnsiString)

Loads a string representation of an XML document and activates it.

Pascal
procedure LoadFromXML(const XML: AnsiString); overload;
procedure LoadFromXML(const XML: DOMString); overload;
C++
__fastcall LoadFromXML(const AnsiString XML);
__fastcall LoadFromXML(const DOMString XML);

Call LoadFromXML to assign a string as the value of the XML document. Unlike the XML property, which lets you assign XML on a line-by-line basis, LoadFromXML treats the text of the XML document as a whole. 

The XML parameter is a string containing the text of an XML document. It should represent the XML text encoded using UTF-8, Unicode, or UTF-16. 

After assigning the XML property as the contents of the document, LoadFromXML sets the Active property to true. 

 

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