Re: [R] R and XML -- a near perfect combination?

About this list Date view Thread view Subject view Author view

A.J. Rossini (rossini@biostat.washington.edu)
30 Nov 1999 15:59:59 -0800



>>>>> "c" == cys <cys@www.approximity.com> writes:

c> Did anybody alreay write a XML parser for R? XML, as we will
c> have tons of data-interchange with all sorts of other programs
c> and XML is good for giving meaning to raw data.

c> Any pointers/comments would be highly appreciated.

It's a nice format, if you know what you are doing. The main thought
that I've been having for what you are proposing (data exchange of
datasets) would be to write an converter from your XML format to a
text representation of the corresponding data.frame.

Reasonably simple, plus you are free to use whatever your choice of
parser language is (C++, Java, Python, whatever). Plus, you can grow
it (a simple list is easy, adding row/col names isn't too hard,
etc... Do it using pipes, and you will be fine for Unix and NT.

The only problem with a generic parser is the necessity of doing XML
to XML conversion, since you can't be sure that everyone wants to use
the DTD (or style) that you particularly like.

best,
-tony

-- 
A.J. Rossini			Research Assistant Professor of Biostatistics 
Center for AIDS Research/HMC	Biostatistics/Univ. of Washington
Box 359931			Box 357232
206-731-3647 (3693=fax)		206-543-1044 (3286=fax)
rossini@u.washington.edu	rossini@biostat.washington.edu
http://www.biostat.washington.edu/~rossini/

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Tue 04 Jan 2000 - 13:34:02 EST