The SASXML package (version 0.2-0)

This is a package that allows R to read XML files in the Open Information Model format that is used by SAS (8.2) and Microsoft's MSSQL database server. This parser processes them to create datasets. It is a very early version of the package that aims to provide an example and a motivation for exploring XML further in relation to SAS.

The OIM support was motivated by discussions with Frank Harrell and Jennifer Shu.

Download

The current version is available as a GNU-zipped tar file SASXML_0.2-0.tar.gz

You will need to have the XML package installed.

This installs as a regular R package and shoould also work with S-Plus as it uses no C code, closures, etc.

Examples

sasDemo.xml
An example OIM file generated from SAS (using xml_test.sas) by Jennifer Shu of the University of Virginia.
test1-generic.xml
Basic example of a single dataset in a file.
test2-generic.xml
Example of 2 datasets in a single file with an additional variable in one of the nodes.

Links

SAS site for XML
W3 Schema page

Duncan Temple Lang <duncan@research.bell-labs.com>
Last modified: Thu May 1 22:20:36 EDT 2003