title: Parsing xml (storing only selected data)
body: <p>i have an xml output from a webservice in a variable "results"</p>
  
  <p>it looks something like this,</p>
  
  <pre><code>&lt;ArrayOfSeriesRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns="http://hiscentral.cuahsi.org/20100205/"&gt;
  
  &lt;SeriesRecord&gt;
  &lt;ServCode&gt;IIHRTippingB&lt;/ServCode&gt;
  &lt;ServURL&gt;
  http://his08.iihr.uiowa.edu/tippingbucket/cuahsi_1_0.asmx?WSDL
  &lt;/ServURL&gt;
  &lt;location&gt;IIHR:CC00&lt;/location&gt;
  &lt;VarCode&gt;IIHR:Precipitation&lt;/VarCode&gt;
  &lt;VarName&gt;Precipitation&lt;/VarName&gt;
  &lt;beginDate&gt;9/25/2006 12:00:00 AM&lt;/beginDate&gt;
  &lt;endDate&gt;5/7/2011 12:00:00 AM&lt;/endDate&gt;
  &lt;ValueCount&gt;161738&lt;/ValueCount&gt;
  &lt;Sitename&gt;CC00&lt;/Sitename&gt;
  &lt;latitude&gt;41.736152648925781&lt;/latitude&gt;
  &lt;longitude&gt;-91.931015014648438&lt;/longitude&gt;
  &lt;datatype&gt;Continuous&lt;/datatype&gt;
  &lt;valuetype&gt;FieldObservation&lt;/valuetype&gt;
  &lt;samplemedium&gt;Precipitation&lt;/samplemedium&gt;
  &lt;timeunits&gt;minute&lt;/timeunits&gt;
  &lt;conceptKeyword&gt;Precipitation&lt;/conceptKeyword&gt;
  &lt;genCategory/&gt;
  &lt;TimeSupport&gt;15&lt;/TimeSupport&gt;
  &lt;/SeriesRecord&gt;
  </code></pre>
  
  <p>i need to parse this xml to get the latitude and longitude and plot it on google maps..</p>
  
  <p>any idea how i can do that..
  please help</p>
  
  <p>thanx in advance.. :))</p>