RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
XMLDoc.LoadXMLDocument Function

Returns the interface for an XML document given the name of an XML file.

Pascal
function LoadXMLDocument(const FileName: DOMString): IXMLDocument;
C++
IXMLDocument LoadXMLDocument(const DOMString FileName);

XMLDoc

Call LoadXMLDocument to load an XML document from a file on disk and obtain its interface. LoadXMLDocument creates a new TXMLDocument object and uses it to parse the file specified by the FileName parameter. The TXMLDocument component is not given an owner, which means that it behaves like an interfaced object. When the application releases the interface that LoadXMLDocument returns, the TXMLDocument instance is automatically freed. 

 

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