XmlSaveFile: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
xmlSaveFile("/resources/nwayo/meta.xml", doc) --Saves the XML file as a .doc
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
</syntaxhighlight>



Revision as of 04:47, 3 July 2007

This function saves a loaded XML file.

Syntax

bool xmlSaveFile ( xmlnode rootNode ) 

Required Arguments

  • rootNode: the root xmlnode of the loaded XML file.

Returns

Returns true if save was successful, false if the XML file does not exist.

Example

xmlSaveFile("/resources/nwayo/meta.xml", doc) --Saves the XML file as a .doc

See Also