XmlDocument

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function saves an existent XML Document.

Syntax

  1. bool XmlDocument.SaveFile( )

Arguments

  • None

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.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox