title: Parse Weather Forecast Data (from the NDFD) in c#
body: <p>I am using > <a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl" rel="nofollow">http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl</a> webservice to get the weather detials by calling GmlTimeSeries webmethod. Now I just want to read temparature, weather icon link details from the xml. The xml has huge data. Can anybody give an idea to fetch the required data from the xml?</p>
  
  <p><a href="http://www.weather.gov/xml/#frequency" rel="nofollow">NDFD HOme Page</a></p>
  
  <p>The XML looks almost like below : <a href="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLclient.php?whichClient=GmlLatLonList&amp;lat=&amp;lon=&amp;listLatLon=&amp;lat1=&amp;lon1=&amp;lat2=&amp;lon2=&amp;resolutionSub=&amp;listLat1=&amp;listLon1=&amp;listLat2=&amp;listLon2=&amp;resolutionList=&amp;endPoint1Lat=&amp;endPoint1Lon=&amp;endPoint2Lat=&amp;endPoint2Lon=&amp;listEndPoint1Lat=&amp;listEndPoint1Lon=&amp;listEndPoint2Lat=&amp;listEndPoint2Lon=&amp;zipCodeList=&amp;listZipCodeList=&amp;centerPointLat=&amp;centerPointLon=&amp;distanceLat=&amp;distanceLon=&amp;resolutionSquare=&amp;listCenterPointLat=&amp;listCenterPointLon=&amp;listDistanceLat=&amp;listDistanceLon=&amp;listResolutionSquare=&amp;citiesLevel=&amp;listCitiesLevel=&amp;sector=&amp;gmlListLatLon=38.99,-77.02%2039.70,-104.80%2047.6,-122.30&amp;featureType=Forecast_Gml2Point&amp;requestedTime=&amp;startTime=2000-01-01T00:00:00&amp;endTime=2012-01-01T00:00:00&amp;compType=Between&amp;propertyName=wx,temp,icons&amp;product=time-series&amp;begin=2004-01-01T00:00:00&amp;end=2015-06-07T00:00:00&amp;maxt=maxt&amp;Submit=Submit" rel="nofollow">Full XML File is Here</a></p>
  
  <p>I want to fetch Temparature from below xml data:</p>
  
  <pre><code> &lt;gml:featureMember&gt;
            &lt;app:Forecast_Gml2Point&gt;
               &lt;gml:position&gt;
                  &lt;gml:Point srsName="EPSG:4326"&gt;
                     &lt;gml:coordinates&gt;-87.8859170,41.7450495&lt;/gml:coordinates&gt;
                  &lt;/gml:Point&gt;
               &lt;/gml:position&gt;
               &lt;app:validTime&gt;2011-06-07T12:00:00&lt;/app:validTime&gt;
               &lt;app:temperature&gt;77.0&lt;/app:temperature&gt;
            &lt;/app:Forecast_Gml2Point&gt;
         &lt;/gml:featureMember&gt;
  
         &lt;gml:featureMember&gt;
            &lt;app:Forecast_Gml2Point&gt;
               &lt;gml:position&gt;
                  &lt;gml:Point srsName="EPSG:4326"&gt;
                     &lt;gml:coordinates&gt;-87.8859170,41.7450495&lt;/gml:coordinates&gt;
                  &lt;/gml:Point&gt;
               &lt;/gml:position&gt;
               &lt;app:validTime&gt;2011-06-07T15:00:00&lt;/app:validTime&gt;
               &lt;app:temperature&gt;90.0&lt;/app:temperature&gt;
            &lt;/app:Forecast_Gml2Point&gt;
         &lt;/gml:featureMember&gt;
  </code></pre>
  
  <p>And weather phrase from below:</p>
  
  <pre><code> &lt;gml:featureMember&gt;
        &lt;app:Forecast_Gml2Point&gt;
           &lt;gml:position&gt;
              &lt;gml:Point srsName="EPSG:4326"&gt;
                 &lt;gml:coordinates&gt;-87.8859170,41.7450495&lt;/gml:coordinates&gt;
              &lt;/gml:Point&gt;
           &lt;/gml:position&gt;
           &lt;app:validTime&gt;2011-06-08T03:00:00&lt;/app:validTime&gt;
           &lt;app:weatherPhrase&gt;Mostly Clear&lt;/app:weatherPhrase&gt;
        &lt;/app:Forecast_Gml2Point&gt;
     &lt;/gml:featureMember&gt;
  
     &lt;gml:featureMember&gt;
        &lt;app:Forecast_Gml2Point&gt;
           &lt;gml:position&gt;
              &lt;gml:Point srsName="EPSG:4326"&gt;
                 &lt;gml:coordinates&gt;-87.8859170,41.7450495&lt;/gml:coordinates&gt;
              &lt;/gml:Point&gt;
           &lt;/gml:position&gt;
           &lt;app:validTime&gt;2011-06-08T06:00:00&lt;/app:validTime&gt;
           &lt;app:weatherPhrase&gt;Mostly Clear&lt;/app:weatherPhrase&gt;
        &lt;/app:Forecast_Gml2Point&gt;
     &lt;/gml:featureMember&gt;
  </code></pre>
  
  <p>The above is a piece of xml file. Like this I have large data for 7 days weather details. I need to read for the temp and weather condition from above xml.</p>
  
  <p><a href="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLclient.php?whichClient=GmlLatLonList&amp;lat=&amp;lon=&amp;listLatLon=&amp;lat1=&amp;lon1=&amp;lat2=&amp;lon2=&amp;resolutionSub=&amp;listLat1=&amp;listLon1=&amp;listLat2=&amp;listLon2=&amp;resolutionList=&amp;endPoint1Lat=&amp;endPoint1Lon=&amp;endPoint2Lat=&amp;endPoint2Lon=&amp;listEndPoint1Lat=&amp;listEndPoint1Lon=&amp;listEndPoint2Lat=&amp;listEndPoint2Lon=&amp;zipCodeList=&amp;listZipCodeList=&amp;centerPointLat=&amp;centerPointLon=&amp;distanceLat=&amp;distanceLon=&amp;resolutionSquare=&amp;listCenterPointLat=&amp;listCenterPointLon=&amp;listDistanceLat=&amp;listDistanceLon=&amp;listResolutionSquare=&amp;citiesLevel=&amp;listCitiesLevel=&amp;sector=&amp;gmlListLatLon=38.99,-77.02%2039.70,-104.80%2047.6,-122.30&amp;featureType=Forecast_Gml2Point&amp;requestedTime=&amp;startTime=2000-01-01T00:00:00&amp;endTime=2012-01-01T00:00:00&amp;compType=Between&amp;propertyName=wx,temp,icons&amp;product=time-series&amp;begin=2004-01-01T00:00:00&amp;end=2015-06-07T00:00:00&amp;maxt=maxt&amp;Submit=Submit" rel="nofollow">Full XML File is Here</a></p>