XmlNodeSetAttribute: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
[[Category:Incomplete]]
__NOTOC__  
__NOTOC__  
This fake function is for use with blah & blah and does blahblahblabhalbhl
This function is used to edit an attribute of a node in a configuration file.


==Syntax==  
==Syntax==  
Line 10: Line 8:


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''xmlnode:''' The node in which you wish to edit the attribute.
 
*'''name:''' The name of the attribute.
===Optional Arguments===
*'''value:''' The value which you wish to change the attribute to.
{{OptionalArg}}
*'''argumentName2:''' descriptiona
*'''argumentName3:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
Returns ''true'' if edit was successful, ''false'' if the node and/or attribute do not exist, or if they're faulty.


==Example==  
==Example==  
Line 32: Line 27:
{{FunctionArea_Functions}}
{{FunctionArea_Functions}}
{{XML_functions}}
{{XML_functions}}
[[Category:Incomplete]]

Revision as of 15:10, 20 June 2007

This function is used to edit an attribute of a node in a configuration file.

Syntax

bool xmlNodeSetAttribute ( xmlnode xmlnode, string name, var value )             

Required Arguments

  • xmlnode: The node in which you wish to edit the attribute.
  • name: The name of the attribute.
  • value: The value which you wish to change the attribute to.

Returns

Returns true if edit was successful, false if the node and/or attribute do not exist, or if they're faulty.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

Template:FunctionArea Functions