Squirrel/Server/Functions/XmlDocument/SaveFile
From Liberty Unleashed Wiki
(Difference between revisions)
(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
This function saves an existent XML Document.
[edit] Syntax
bool XmlDocument.SaveFile( )
[edit] Arguments
- None
[edit] Example
This command will load an XML document into the scripts and save it.
function onScriptLoad() { local myDocument = XmlDocument(); myDocument.LoadFile( "Example.xml" ); myDocument.SaveFile(); }
[edit] Notes
The callback onScriptLoad was used in this example. More info about it is available in the corresponding pages.
[edit] Related Functions
- XmlDocument
- XmlDocument.Clear
- XmlDocument.FirstChild
- XmlDocument.LinkChild
- XmlDocument.LoadFile
- XmlDocument.Name
- XmlDocument.SaveFile
- XmlElement
- XmlElement.Clear
- XmlElement.FirstChild
- XmlElement.GetAttribute
- XmlElement.LinkChild
- XmlElement.LinkSibling
- XmlElement.Name
- XmlElement.NextSibling
- XmlElement.Parent
- XmlElement.RemoveAttribute
- XmlElement.RemoveChild
- XmlElement.RemoveSibling
- XmlElement.SetAttribute
- XmlElement.Text