Learn R Programming

XML (version 1.6-2)

xmlParent: Get parent node of XMLInternalNode

Description

This operates on an internal C-level XML node and returns a reference to its parent node within the document tree.

Usage

xmlParent(x)

Arguments

x
an object of class XMLInternalNode whose parent is being requested.

Value

  • An object of class XMLInternalNode.

Details

This uses the internal libxml structures to access the parent in the DOM tree. This function is generic so that we can add methods for other types of nodes if we so want in the future.

References

http://www.w3.org/XML

See Also

xmlChildren xmlTreeParse xmlNode