- Documentation
- Shared functions
- xmlNodeGetParent
Function
xmlNodeGetParent
Returns the node's parent.
Syntax
xmlnode xmlNodeGetParent(xmlnode node)Arguments
nodexmlnode- The node.
Returns
The parent, or false for the root node.
Example
local root = xmlLoadString("<a><b/></a>")
local b = xmlFindChild(root, "b", 0)
outputDebugString(xmlNodeGetName(xmlNodeGetParent(b)))
xmlUnloadFile(root)