title: How to parse an XML file to an R data frame?
body: <p>I tried to parse an XML file to an R data frame. This link helped me a lot:</p>
  <p><a href="https://stackoverflow.com/questions/13579996/how-to-create-an-r-data-frame-from-a-xml-file">How to create an R data frame from an xml file?</a></p>
  <p>But still I was not able to figure out my problem. Here is my code:</p>
  <pre><code>data &lt;- xmlParse(&quot;http://forecast.weather.gov/MapClick.php?lat=29.803&amp;lon=-82.411&amp;FcstType=digitalDWML&quot;)
  xmlToDataFrame(nodes=getNodeSet(data1,&quot;//data&quot;))[c(&quot;location&quot;,&quot;time-layout&quot;)]
  step1 &lt;- xmlToDataFrame(nodes=getNodeSet(data1,&quot;//location/point&quot;))[c(&quot;latitude&quot;,&quot;longitude&quot;)]
  step2 &lt;- xmlToDataFrame(nodes=getNodeSet(data1,&quot;//time-layout/start-valid-time&quot;))
  step3 &lt;- xmlToDataFrame(nodes=getNodeSet(data1,&quot;//parameters/temperature&quot;))[c(&quot;type=&quot;hourly&quot;&quot;)]
  </code></pre>
  <p>The data frame I want to have is like this:</p>
  <pre><code>latitude  longitude   start-valid-time   hourly_temperature
  29.803     -82.411  2013-06-19T15:00:00-04:00    91
  29.803     -82.411  2013-06-19T16:00:00-04:00    90
  </code></pre>
  <p>I'm stuck at the <code>xmlToDataFrame()</code>, any help would be very much appreciated.</p>