XmlCreateFile: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<section name="Server | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | |||
xmlnode xmlCreateFile ( string filename, string rootNodeName, resource root = getThisResource () ) | |||
</syntaxhighlight> | |||
<section name="Client" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
xmlnode xmlCreateFile ( string filename, string rootNodeName ) | xmlnode xmlCreateFile ( string filename, string rootNodeName ) | ||
Line 12: | Line 17: | ||
*'''filename:''' The name of the XML file you wish to create. | *'''filename:''' The name of the XML file you wish to create. | ||
*'''rootNodeName:''' The name of the root node in the XML document. | *'''rootNodeName:''' The name of the root node in the XML document. | ||
*'''root:''' Specifies which resource directory to use as root when specifying the filename. Note that if a different resource than default is being accessed, the caller resource needs access to general.ModifyOtherObjects in the ACL. | |||
</section> | </section> | ||
Revision as of 15:49, 20 October 2007
This function creates a new XML document, which can later be saved to a file by using xmlSaveFile.
Syntax
Click to collapse [-]
Serverxmlnode xmlCreateFile ( string filename, string rootNodeName, resource root = getThisResource () )
<section name="Client" class="client" show="true">
xmlnode xmlCreateFile ( string filename, string rootNodeName )
Required Arguments
- filename: The name of the XML file you wish to create.
- rootNodeName: The name of the root node in the XML document.
- root: Specifies which resource directory to use as root when specifying the filename. Note that if a different resource than default is being accessed, the caller resource needs access to general.ModifyOtherObjects in the ACL.
Returns
Returns the root xmlnode object of the new XML file if successful, or false otherwise.