XmlCreateFile: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Needs example) |
||
Line 30: | Line 30: | ||
===Returns=== | ===Returns=== | ||
Returns the root [[xmlnode]] object of the new XML file if successful, or ''false'' otherwise. | Returns the root [[xmlnode]] object of the new XML file if successful, or ''false'' otherwise. | ||
==Example== | |||
<syntaxhighlight lang="lua"> | |||
--TODO | |||
</syntaxhighlight> | |||
==See Also== | ==See Also== | ||
{{XML_functions}} | {{XML_functions}} | ||
[[Category:Needs Example]] | [[Category:Needs Example]] |
Revision as of 08:15, 19 June 2009
This function creates a new XML document, which can later be saved to a file by using xmlSaveFile. This function will overwrite the file specified if it already exists.
Syntax
Click to collapse [-]
Serverxmlnode xmlCreateFile ( string filename, string rootNodeName, [ resource inResource = getThisResource() ] )
Required Arguments
- filename: the name of the XML file you wish to create.
- rootNodeName: the name of the root node in the XML document.
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
Click to collapse [-]
Clientxmlnode xmlCreateFile ( string filename, string rootNodeName )
Required Arguments
- filename: The filepath of the XML file you wish to create. This is a path relative to the clientside root folder of the resource found in your MTA San Andreas installation directory.
- rootNodeName: The name of the root node in the XML document.
Returns
Returns the root xmlnode object of the new XML file if successful, or false otherwise.
Example
--TODO