Squirrel/Server/Functions/XmlDocument/SaveFile

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Squirrel/Title|XmlDocument}} This function saves an existent XML Document. == Syntax == <code>bool XmlDocument.SaveFile( )</code> == Arguments == * '''None''' == Exampl...")
 

Latest revision as of 14:26, 3 July 2013

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function saves an existent XML Document.

[edit] Syntax

  1. bool XmlDocument.SaveFile( )

[edit] Arguments

  • None

[edit] Example

This command will load an XML document into the scripts and save it.

  1.  
  2. function onScriptLoad()
  3. {
  4. local myDocument = XmlDocument();
  5. myDocument.LoadFile( "Example.xml" );
  6. myDocument.SaveFile();
  7. }
  8.  

[edit] Notes

The callback onScriptLoad was used in this example. More info about it is available in the corresponding pages.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox