NativeXml Help
TNativeXml.SaveToFile
procedure SaveToFile(const AFileName: string); virtual;
Description
Call SaveToFile to save the XML document to a file with FileName. If the filename exists, it will be overwritten without warning. If the file cannot be created, a standard I/O exception will be generated. Set XmlFormat to xfReadable if you want the file to contain indentations to make the XML more human-readable. This is not the default and also not compliant with the XML specification.