RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLDocument.FileName Property

Indicates the XML document file, if any, that this interface represents.

Pascal
property FileName: DOMString;
C++
__property DOMString FileName;

Use FileName to get or set the name of the XML file that this document represents. FileName is set automatically when an application calls the LoadFromFile method or when this interface is obtained from the global LoadXMLDocument function. 

When you set the value of FileName, the XML property automatically changes (at runtime) to represent the contents of that file.

Note: The content of this XML document, which is available as the value of the XML property, may not be the same as the content of the specified file. If an application uses IXMLDocument to edit the document, those changes are not saved back to the XML document file until you call the SaveToFile method.
Tip: If the underlying DOM implementation supports it, you can use FileName to specify an URL rather than a file on disk.
 

 

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