XmlNodeGetName

From Multi Theft Auto: Wiki
Revision as of 20:49, 12 May 2019 by Sheva (talk | contribs) (Do not forget xmlUnloadFile.)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Gets the tag name of the specified XML node.

Syntax

string xmlNodeGetName ( xmlnode node )

OOP Syntax Help! I don't understand this!

Method: xmlnode:getName(...)
Variable: .name
Counterpart: xmlNodeSetName


Required Arguments

  • node: the node to get the tag name of.

Returns

Returns the tag name of the node if successful, false otherwise.

Click to collapse [-]
Example 1

Example

local xml = xmlCreateFile("test.xml","test")
local xmlNode = xmlCreateChild(xml,"nextTest")
local xmlNodeName = xmlNodeGetName(xmlNode)
xmlUnloadFile(xml)
outputConsole(xmlNodeName) --This should output "nextTest".

See Also