GenXmlFile method: XmlDoc class
Syntax
GenXmlFile(path)
Description
Use the GenXmlFile method to write the content of the XmlDoc object to a file. The XML output file will be in UTF-8 format, and its elements will be formatted and named exactly the same as the XML output from the GenXmlString method.
Parameters
| Parameter | Description |
|---|---|
|
path |
Specifies the absolute system path of the destination file. |
Returns
A Boolean value: True, if the XML file was saved successfully, False otherwise.
Example
Local XmlDoc &xmldocRoot = CreateXmlDoc(" ");
Local XmlNode &nodeRoot = &xmldocRoot.CreateDocumentElement("root");
.
.
.
&result = &xmldocRoot.GenXmlFile("c:\data.xml");
Related Topics