%XML_SaveDocument function


Function
The function saves the XML document to the specific file on the disk.
Declaration
BOOL %XML_SaveDocument(
    INT in document, 
   TEXT in fileName[,
   TEXT in encoding = "utf-8"] 
  [,BOOL in useProcInstruction]
 )

Parameters
document Handle to XML document.
fileName File name.
encoding Encoding, in which the document will be saved. You can use "utf-8" or "windows-1250".
useProcInstruction Disables the displaying of the procedural instruction <?xml version="1.0" encoding="xxx"?>, where "xxx" defines encoding, which is in fact in the "encoding" parameter.

Return value
@TRUE - document saved, @FALSE - cannot save the document.
Description
The function saves the given XML document on the disk.
Example
 BOOL _ok
 _ok := %XML_SaveDocument(_doc, "c:\data.xml")
 

Napíšte komentár