Xml.XMLIntf.IXMLDocument.FileName
Delphi
property FileName: DOMString read GetFileName write SetFileName;
C++
__property System::UnicodeString FileName = {read=GetFileName, write=SetFileName};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Xml.XMLIntf.pas Xml.XMLIntf.hpp |
Xml.XMLIntf | IXMLDocument |
Description
Indicates the XML document file, if any, that this interface represents.
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.