From abdelhakimz at gmail.com  Mon May 14 20:40:18 2007
From: abdelhakimz at gmail.com (Abdelhakim z)
Date: Mon, 14 May 2007 19:40:18 +0100
Subject: [Rd] =?windows-1252?q?XML_parsing_under_R_/_Extracting_nodes=92_v?=
	=?windows-1252?q?alues?=
Message-ID: <3d5cc13f0705141140j9739a17n9d405b607506600d@mail.gmail.com>

Hi,
I have an XML file which contains among other nodes :

===myXMLfile.xml===
(?)
<nbRelations>2</nbRelations>
<nbActors>2</nbActors>
(...)
<nbRuns>5</nbRuns>
<nbStep>2000</nbStep>
(?)
===End file===
I need to extract those values and to make them R variables such as:
nbRelations = 2
nbActors = 2

nbRuns = 5
nbSteps = 2000

I read the help and have seen the examples of the xml package, it
seems that I need to use xmlTreeParse() function but I don't know how
exactly as I'm not an R advanced programmer, please can anyone show me
how to do that explicitly ?

Any help would be much appreciated

Thanks,

Abdel
University of Boumerd?s
Algeria



[Rd] =?windows-1252?q?XML_parsing_under_R_/_Extracting_nodes=92_v?= =?windows-1252?q?alues?=
Abdelhakim z