XmlNodeSetAttribute

From Multi Theft Auto: Wiki
Revision as of 15:10, 20 June 2007 by Black Dragon (talk | contribs)
Jump to navigation Jump to search

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