XmlDocument

From Liberty Unleashed Wiki
Revision as of 14:26, 3 July 2013 by Shadow (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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