RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLDocument.FileName Property

Specifies the file name for the XML document associated with this TXMLDocument object.

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

Set FileName to specify the XML document you want to examine or manipulate using the TXMLDocument object. Once you have set FileName to the name of an XML document, you can activate the XML document and examine or manipulate it using the DocumentElement property. 

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

Note: Setting the value of FileName automatically sets the Active property to false.
After activating the XML document, any changes you make to the document are not saved back to disk 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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!