Last Release: 3.98-1 (Sun Oct 4 17:00:33 PDT 2015)
The latest version (3.99-0) introduces the ability to define XPath functions for use in the getNodeSet() and xpathApply() R functions. One can use R functions and C routines to implement new XPath functions. Additionally, several XPath 2.0 functions are implemented by default.
Some people have encounterd memory leaks with this package. As far as I am aware, these are only on Windows. I think this is due to the binary versions of the package created for the package missing compiler flag.
This package provides facilities for the S language to
The source for the S package can be downloaded as XML_3.98-1.tar.gz.
There is also a Windows version available from the Omegahat repository. Use
install.packages("XML", repos = "http://www.omegahat.org/R")
Best practices for using the XML package
library(XML)
source(url("http://www.omegahat.org/RSXML/keyValueDB.R"))
o = readKeyValueDB("http://www.omegahat.org/RSXML/plist.xml")
<lst name="info">
<str name="ABC">A string</str>
<int name="xyz">103</int>
<long name="big">1000012310303</long>
<bool>true</bool>
<date name="lastModified">2011-02-10T11:29:03Z</date>
</lst>
library(XML)
source(url("http://www.omegahat.org/RSXML/solrDocs.R"))
o = readSolrDoc("http://www.omegahat.org/RSXML/solr.xml")