>>>>> "c" == cys <cys at 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 at u.washington.edu rossini at 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 at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
cys@www.approximity.com
1999-Dec-01 01:25 UTC
[R] R and XML -- a near perfect combination?
Please ignore my ignorance, I'm new to R, but starting a longish project that will use R a lot. (a computer scientist learning about stats at the same time). Did anybody alreay write a XML parser for R? XML, as we will have tons of data-interchange with all sorts of other programs and XML is good for giving meaning to raw data. I checked the FAQs and the documentation, but didn't find anything. Any pointers/comments would be highly appreciated. Thanks, Michelle. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, Nov 30, 1999 at 05:25:17PM -0800, cys at www.approximity.com wrote:> Did anybody alreay write a XML parser for R? > XML, as we will have tons of data-interchange with > all sorts of other programs and XML is good for giving > meaning to raw data.A good C XML library is libxml (wierd name, I know :-), at http://rpmfind.net/veillard/XML/. It's the one used in GNOME, but it is supposed to be portable. I don't know how well it would work on Win32, but it would be worth looking at. It is licensed under the LGPL. -- Lyndon Drake | Desktop: http://www.gnome.org isenguard | Mail client: http://www.mutt.org ICQ#: 12558803 | Editor: http://www.vim.org http://stat.auckland.ac.nz/~lyndon | OS: http://www.linux.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._