Skip to content
Back to formatted view

Raw Message

Message-ID: <1319530282952-3935980.post@n4.nabble.com>
Date: 2011-10-25T08:11:22Z
From: arunkumar1111
Subject: Problem in creating XML

I've a problem in creating an XML

My code
node= newXMLNode("data")
new<-newXMLNode("new",parent=node)
child<-newXMLNode("Plot",parent=new)

My dataframe Plot looks like below

                  x     y
                  0 123812.31
                  1 120166.77
                   2 111115.83
                   3 102809.13
                   4  84438.97
                   5  84588.40

for( i in nrows(Plot))
{
  
  newXMLNode(child,attrs = c(x = as.character(i),y =
as.character(Plot$y[j])),parent=newl)
 
}

Butg i'm getting error  "Error in strsplit(name, ":") : non-character
argument"

Please help me

--
View this message in context: http://r.789695.n4.nabble.com/Problem-in-creating-XML-tp3935980p3935980.html
Sent from the R help mailing list archive at Nabble.com.