Read an XML file into an R object
Character string, valid path to the XML file which should be parsed.
Character vector with the possible values
An object of class
XiMpLe.doc with four slots:
Full path to the parsed file,
XML declaration, if found.
Doctype definition, if found.
A list of objects of class
with the elements
"name" (the node name),
"attributes" (list of attributes, if found),
"children" (list of
XiMpLe.node object, if found) and
(text value between a pair of start/end tags, if found).
1 2 3 4
## Not run: sample.XML.object <- parseXMLTree("~/data/sample_file.xml") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.