XML又叫可扩展标记语言,是一种具有结构性的标记语言,可以结构化的描述信息。XML最初的出现也是为了提供一个标准的数据格式。它便于数据共享,数据传输。也可以用于系统配置,内容管理。
在R语言里面读写XML数据可用XML
包。
XML数据
这个是我们这个文章使用的数据,来自 https://www.runoob.com/xml/xml-tree.html。
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</a