RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
XMLDoc.LoadXMLData Function

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

Pascal
function LoadXMLData(const XMLData: DOMString): IXMLDocument; overload;
function LoadXMLData(const XMLData: string): IXMLDocument; overload;
C++
IXMLDocument LoadXMLData(const DOMString XMLData);
IXMLDocument LoadXMLData(const AnsiString XMLData);

XMLDoc

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!