Re: [R] exportation of xml file from R

2009-06-25 Thread Duncan Temple Lang
BTW, the XML you show is not legal XML. For instance, the element F)>NAF)> is not a legal XML element name. Similarly is not a legal name since it is "2". And anova:2 means an element with name 2 with (XML) name space prefix "anova" (which must be declared previously) As Gabor mentioned

Re: [R] exportation of xml file from R

2009-06-25 Thread Duncan Temple Lang
Hi Guillaume Once you have created an XML representation using any of the various ways to represent XML in R via the XML package (e.g. internal nodes, lists of lists, hash trees), you can use the saveXML() function: saveXML(myXML, "fileName.xml") Personally, I use newXMLNode() and friend

Re: [R] exportation of xml file from R

2009-06-25 Thread Gabor Grothendieck
See the StatDataML package. On Thu, Jun 25, 2009 at 10:54 AM, guillaume Le Ray wrote: > Hello everybody, > > I have programed a function to translate the R object structure into a XML > data structure but I haven't found a function in the XML package to export > this data in an XML file! > > my da

[R] exportation of xml file from R

2009-06-25 Thread guillaume Le Ray
Hello everybody, I have programed a function to translate the R object structure into a XML data structure but I haven't found a function in the XML package to export this data in an XML file! my data look like that: Assessor:codec 33.98159 28 6.510894 F)> 1.725149e-22F)>