| parseXMLTree {XiMpLe} | R Documentation |
Read an XML file into an R object
Description
Read an XML file into an R object
Usage
parseXMLTree(file, drop = NULL, object = FALSE)
Arguments
file |
Character string, valid path to the XML file which should be parsed. |
drop |
Character vector with the possible values |
object |
Logical, if |
Value
An object of class XiMpLe_doc with four slots:
file:Full path to the parsed file, or
"object"ifobject=TRUE.xml:XML declaration, if found.
dtd:Doctype definition, if found.
children:A list of objects of class
XiMpLe_node, with the elements"name"(the node name),"attributes"(list of attributes, if found),"children"(list ofXiMpLe_nodeobject, if found) and"value"(text value between a pair of start/end tags, if found).
See Also
Examples
## Not run:
sample.XML.object <- parseXMLTree("~/data/sample_file.xml")
## End(Not run)