XmlNodeGetName: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(add oop syntax) |
||
Line 7: | Line 7: | ||
string xmlNodeGetName ( xmlnode node ) | string xmlNodeGetName ( xmlnode node ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[xmlnode]]:getName|name|xmlNodeSetName}} | |||
===Required Arguments=== | ===Required Arguments=== | ||
*'''node:''' the node to get the tag name of. | *'''node:''' the node to get the tag name of. |
Revision as of 20:25, 2 January 2015
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 1Example
local xml = xmlCreateFile("test.xml","test") local xmlNode = xmlCreateChild(xml,"nextTest") local xmlNodeName = xmlNodeGetName(xmlNode) outputConsole(xmlNodeName) --This should output "nextTest".
See Also
- xmlCopyFile
- xmlCreateChild
- xmlCreateFile
- xmlDestroyNode
- xmlFindChild
- xmlLoadFile
- xmlLoadString
- xmlNodeGetAttribute
- xmlNodeGetAttributes
- xmlNodeGetChildren
- xmlNodeGetName
- xmlNodeGetParent
- xmlNodeGetValue
- xmlNodeSetAttribute
- xmlNodeSetName
- xmlNodeSetValue
- xmlSaveFile
- xmlUnloadFile