[R] Basic editing of XML file
Robert U
tacsunday at yahoo.fr
Thu Aug 13 14:51:19 CEST 2015
Dear RUser,I’m tryingto operate some very slight editing to the values of an XML file. I looked abit everywhere and it appears that dealing with XML files is not that easy… besidemy XML files might be a bit weirdly structured. Anyway, let me give you an exampleof it :
Root(xmlfile)<BLABLA version="XXX"> <A1 X1="2" X2="0"X3="100"> <A2 X1="133.708" X2="36.28558"/> <A3 X1="0" X2="0" X3="0" X4="0"/> <A4 mode="0"/> … ……… </ A1 ></ BLABLA > I’d like to modify the value of say,X1 in A1 line, or X1 in A2 line. Unfortunately the structure of this datasetdoes not really look like the examples I’ve seen on the internet, where youhave something that look like that : <A1> something to change </A1> In my case as you noticed, thevalues I want to edit are inside de <>, which is pretty odd… Any tips? Regards
[[alternative HTML version deleted]]
More information about the R-help
mailing list