[R] example - export a data frame to an XML file
binabina at bellsouth.net
Mon Sep 29 14:05:15 CEST 2008
Duncan, thanks for the note - the schema looks like this - is this what
your asking for?
Duncan Temple Lang wrote:
> Hi Zubin.
> The first thing is to send us a link to the schema that the
> other application expects. That would give us a "one-to-one"
> mapping; otherwise, data.frame to arbitrary XML is to vague.
> Currently, there is nothing in the XML package that would
> be able to take an XML schema and write an R object to such a
> structure. However, I am in the process of creating an XMLSchema
> package which can read XML schema and make the description available to
> R so that we can read data from an XML file corresponding to that schema
> and this could be adapted in some ways to automate the creation of
> XML from an R object (under certain assumptions).
> So please send us all a link to the XML schema.
> zubin wrote:
>> In need of exporting an XML file from R, I scrub some data in R and
>> push the data into another application requiring XML. The data set
>> is a very straightforward data frame of stock prices- see below. I
>> know the package XML is the one to use, but need an example or some
>> direction on where to start. I know we need to define the schema -
>> can this be done in the R XML package?
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help