O'Reilly logo

Data Analysis with R by Tony Fischetti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

XML

XML, like JSON, is an absolutely ubiquitous format for data transfer over the Internet. In addition to being used on the web, XML is also a popular data format for application configuration files and the list. In fact, newer Microsoft Office documents (with the extension .docx or .xlsx) are stored as XML files.

Here's what our simple Beatles dataset may look like in XML:

example_xml1 <- ' <the_beatles> <formed>1960</formed> <members> <member> <first_name>George</first_name> <last_name>Harrison</last_name> </member> <member> <first_name>Ringo</first_name> <last_name>Starr</last_name> </member> <member> <first_name>Paul</first_name> <last_name>McCartney</last_name> </member> <member> <first_name>John</first_name> <last_name>Lennon</last_name> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required