XmlSaveFile: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
node = xmlLoadFile ( "test.xml" ) --load an xml file | |||
xmlSaveFile( node ) --Save the xml file | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{XML_functions}} | {{XML_functions}} |
Revision as of 23:13, 7 September 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
node = xmlLoadFile ( "test.xml" ) --load an xml file xmlSaveFile( node ) --Save the xml file
See Also
- xmlCopyFile
- xmlCreateChild
- xmlCreateFile
- xmlDestroyNode
- xmlFindChild
- xmlLoadFile
- xmlLoadString
- xmlNodeGetAttribute
- xmlNodeGetAttributes
- xmlNodeGetChildren
- xmlNodeGetName
- xmlNodeGetParent
- xmlNodeGetValue
- xmlNodeSetAttribute
- xmlNodeSetName
- xmlNodeSetValue
- xmlSaveFile
- xmlUnloadFile