Xml.XMLDoc.TXMLDocument.LoadFromXML

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromXML(const XML: AnsiString); overload;
procedure LoadFromXML(const XML: DOMString); overload;

C++

void __fastcall LoadFromXML(const System::AnsiString XML)/* overload */;
void __fastcall LoadFromXML(const System::UnicodeString XML)/* overload */;

Properties

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

Description

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

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.

See Also

Code Examples