From RAD Studio API Documentation
Jump to: navigation, search


function LoadXMLData(const XMLData: DOMString): IXMLDocument; overload;
function LoadXMLData(const XMLData: AnsiString): IXMLDocument; overload;


extern DELPHI_PACKAGE Xml::Xmlintf::_di_IXMLDocument __fastcall LoadXMLData(const System::UnicodeString XMLData)/* overload */;


Type Visibility Source Unit Parent
function public
Xml.XMLDoc Xml.XMLDoc


Creates and returns the interface of an XML document object, given a string of XML.

Call LoadXMLData to create an XML document that represents a specified XML string and obtain its interface.

XMLData is the XML for which you want an IXMLDocument interface.

LoadXMLData returns an interface for the parsed value of XMLData.

LoadXMLData creates a new TXMLDocument object to parse the XML and returns its IXMLDocument. The TXMLDocument component is not given an owner, which means that it behaves like an interfaced object. When the application releases the interface that LoadXMLData returns, the TXMLDocument instance is automatically freed.

See Also