Squirrel/Server/Functions/XmlDocument/XmlDocument

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Initial writeup)

Revision as of 14:15, 3 July 2013

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

This function prepares an XML document to be loaded and used later.

Syntax

  1. XmlDocument XmlDocument( )

Arguments

  • None

Example

This command will load an XML document into the scripts.

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

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