xmlNodeGetName
Client-side
Server-side
Shared
Pair: xmlNodeSetName
Gets the tag name of the specified XML node.
OOP Syntax Help! I don't understand this!
- Method: xmlnode:getName(...)
- Variable: .name
Syntax
string|false xmlNodeGetName ( xmlnode node )
Required Arguments
- node: The xmlnode to get the tag name of.
Returns
- string|false: name
Returns the tag name of the node if successful, false otherwise.
Code Examples
shared
This example displays the name of the created node in the chat.
local xml = xmlCreateFile("test.xml","test")if (not xml) then returnend
local xmlNode = xmlCreateChild(xml, "nextTest")local xmlNodeName = xmlNodeGetName(xmlNode)xmlUnloadFile(xml)
outputConsole(xmlNodeName) -- This should output "nextTest"