XmlDestroyNode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
This function destroys an XML node. This removes it from the xml tree.
This function destroys a XML node from the XML node tree.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool xmlDestroyNode ( xmlnode )
bool xmlDestroyNode ( xmlnode theXMLNode )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
<!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type -->
*'''theXMLNode:''' The [[xml node]] you want to destroy.
*'''argumentName:''' description
 
<!-- Only include this section below if there are optional arguments -->
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' description
*'''argumentName3:''' description


===Returns===
===Returns===
Returns a table of resources.
Returns ''true'' if the [[xml node]] was successfully destroyed, ''false'' otherwise.


==Example==
==Example==
This function lists all loaded resources in the console.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function blabla ()
-- Todo...
    --this does blabla
end
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{XML_functions}}
{{XML functions}}
[[Category:Needs Example]]
[[Category:Needs Example]]

Revision as of 14:11, 26 March 2009

This function destroys a XML node from the XML node tree.

Syntax

bool xmlDestroyNode ( xmlnode theXMLNode )

Required Arguments

  • theXMLNode: The xml node you want to destroy.

Returns

Returns true if the xml node was successfully destroyed, false otherwise.

Example

-- Todo...

See Also