title: How would I parse the XML file in R and carry out basic Statistics Analysis on the data
body: <p>I am trying to parse the XML file in R, so that I can analysis the data. I am trying to get the mean and standard deviation of the price. Also I would like to be able to get the rate of change in the time of the share price changing. I have tried entering the data by hand but am having problems with the date structure ( I have tried the following: </p>
  
  <pre><code>z &lt;- strptime ("HH:MM:SS.ms, "%H:%m:%S.%f")
  </code></pre>
  
  <p>but it failed to work). I know the XML file only has a small few numbers but is it a process that could be automated and if so what packages would I need? (I am new to R). Any help would be much appreciated.</p>
  
  <p>Thanks,
  Anthony.  </p>
  
  <pre><code>&lt;?xml version = "1.0"?&gt;
      &lt;Company &gt;
      &lt;shareprice&gt;
      &lt;timeStamp&gt; 12:00:00:01&lt;/timeStamp&gt;
      &lt;Price&gt;  25.02&lt;/Price&gt;
      &lt;/shareprice&gt;
  
  
  
      &lt;shareprice&gt;
      &lt;timeStamp&gt; 12:00:00:02&lt;/timeStamp&gt;
      &lt;Price&gt;  15&lt;/Price&gt;
      &lt;/shareprice&gt;
  
  
  
      &lt;shareprice&gt;
      &lt;timeStamp&gt; 12:00:00:025&lt;/timeStamp&gt;
      &lt;Price&gt;  15.02&lt;/Price&gt;
      &lt;/shareprice&gt;
  
  
  
      &lt;shareprice&gt;
      &lt;timeStamp&gt; 12:00:00:031&lt;/timeStamp&gt;
      &lt;Price&gt;  18.25&lt;/Price&gt;
      &lt;/shareprice&gt;
  
  
  
      &lt;shareprice&gt;
      &lt;timeStamp&gt; 12:00:00:039&lt;/timeStamp&gt;
      &lt;Price&gt;  18.54&lt;/Price&gt;
      &lt;/shareprice&gt;
  
  
  
      &lt;shareprice&gt;
      &lt;timeStamp&gt; 12:00:00:050&lt;/timeStamp&gt;
      &lt;Price&gt; 16.52&lt;/Price&gt;
      &lt;/shareprice&gt;
  
  
     &lt;shareprice&gt;
      &lt;timeStamp&gt; 12:00:01:01&lt;/timeStamp&gt;
      &lt;Price&gt;  17.50&lt;/Price&gt;
     &lt;/shareprice&gt;
  &lt;/Company&gt;
  </code></pre>