xmlParent {XML} | R Documentation

## 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.

### 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.

### Value

An object of class `XMLInternalNode`.

### Author(s)

Duncan Temple Lang

### References

http://www.w3.org/XML

### See Also

`xmlChildren` `xmlTreeParse` `xmlNode`

### Examples

[Package XML version 0.99-1 Index]