- Documentation
- Shared functions
- xmlNodeSetName
Function
xmlNodeSetName
Changes the node's tag name.
Syntax
bool xmlNodeSetName(xmlnode node, string name)Arguments
nodexmlnode- The node.
namestring- The new name.
Returns
true on success.
Example
local root = xmlCreateFile("x.xml", "old")
xmlNodeSetName(root, "new")
xmlUnloadFile(root)