Learn R Programming

XiMpLe (version 0.03-21)

parseXMLTree: 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 "comments", "cdata" "declarations" and "doctype", defining element classes to be dropped from the resulting object.
object
Logical, if TRUE, file will not be treated as a path name but as a character vector to be parsed as XML directly.

Value

  • An object of class XiMpLe.doc with four slots: [object Object],[object Object],[object Object],[object Object]

See Also

XiMpLe.node, XiMpLe.doc

Examples

Run this code
sample.XML.object <- parseXMLTree("~/data/sample_file.xml")

Run the code above in your browser using DataLab