%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
documentHandle to XML document.
fileNameFile name.
encodingEncoding in which the document will be saved. You can use "utf-8" or "windows-1250".
useProcInstructionDisables 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