RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLDocument.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. 

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!