title: Getting Nodes within NodeList XML
body: <p>Okay so I haven't worked much with XML, and I'm trying to retrieve values between certain tags from an XML Rest Response.
  The XML Response is as follows:</p>
  
  <pre><code> &lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;root version="1.1" result="Success"&gt;
      &lt;row&gt;
          &lt;NewUsed&gt;used&lt;/NewUsed&gt;
          &lt;Make&gt;TOYOTA&lt;/Make&gt;
          &lt;Model&gt;HILUX&lt;/Model&gt;
          &lt;Derivative&gt;3.0 D-4D Double Cab Raider&lt;/Derivative&gt;
          &lt;MMCode&gt;60036426&lt;/MMCode&gt;
          &lt;RegNumber&gt;NP191382&lt;/RegNumber&gt;
          &lt;Year&gt;2014&lt;/Year&gt;
          &lt;Mileage&gt;154887.0&lt;/Mileage&gt;
          &lt;Price&gt;299950.0&lt;/Price&gt;
          &lt;Media&gt;
              &lt;Thumb&gt;ccf1474a-79ed-48c4-9913-b390bc06fddc&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/ccf1474a-79ed-48c4-9913-b390bc06fddc&lt;/Pic&gt;
              &lt;Thumb&gt;f23359cd-420a-46a6-aedf-46bf574e83f3&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/f23359cd-420a-46a6-aedf-46bf574e83f3&lt;/Pic&gt;
              &lt;Thumb&gt;d300a13e-47a7-446a-8139-7c72d67c423c&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/d300a13e-47a7-446a-8139-7c72d67c423c&lt;/Pic&gt;
              &lt;Thumb&gt;a098f3eb-c0de-49e5-b349-a9da58035d09&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/a098f3eb-c0de-49e5-b349-a9da58035d09&lt;/Pic&gt;
              &lt;Thumb&gt;4551cb8e-7ef2-4307-9e03-985dc4c7ae6b&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/4551cb8e-7ef2-4307-9e03-985dc4c7ae6b&lt;/Pic&gt;
              &lt;Thumb&gt;3f9e73df-ade1-49a9-920d-4122f0439f3a&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/3f9e73df-ade1-49a9-920d-4122f0439f3a&lt;/Pic&gt;
              &lt;Thumb&gt;7c76c64b-9ead-4712-a57c-2bee30f1e6e2&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/7c76c64b-9ead-4712-a57c-2bee30f1e6e2&lt;/Pic&gt;
              &lt;Thumb&gt;4055da15-1ccc-40e1-8e13-32dade2aafe5&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/4055da15-1ccc-40e1-8e13-32dade2aafe5&lt;/Pic&gt;
              &lt;Thumb&gt;e5a6b77b-dade-4c2f-800c-77988a3d0a83&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/e5a6b77b-dade-4c2f-800c-77988a3d0a83&lt;/Pic&gt;
          &lt;/Media&gt;
          &lt;Colour&gt;White&lt;/Colour&gt;
          &lt;AdvertId&gt;b3beab43909043d6a8c086cd223ffd3b&lt;/AdvertId&gt;
          &lt;StockNumber&gt;13302&lt;/StockNumber&gt;
          &lt;AdditionalText&gt;Great condition with spare keys included&lt;/AdditionalText&gt;
          &lt;FuelType&gt;Diesel&lt;/FuelType&gt;
          &lt;TransmissionType&gt;Manual&lt;/TransmissionType&gt;
          &lt;TransmissionDriveType&gt;4x2&lt;/TransmissionDriveType&gt;
          &lt;Doors&gt;4&lt;/Doors&gt;
          &lt;BodyType&gt;Double Cab&lt;/BodyType&gt;
      &lt;/row&gt;
      &lt;row&gt;
          &lt;NewUsed&gt;used&lt;/NewUsed&gt;
          &lt;Make&gt;VOLKSWAGEN&lt;/Make&gt;
          &lt;Model&gt;GOLF&lt;/Model&gt;
          &lt;Derivative&gt;GTI&lt;/Derivative&gt;
          &lt;MMCode&gt;64045900&lt;/MMCode&gt;
          &lt;RegNumber&gt;YRY546GP&lt;/RegNumber&gt;
          &lt;Year&gt;2009&lt;/Year&gt;
          &lt;Mileage&gt;116000.0&lt;/Mileage&gt;
          &lt;Price&gt;189950.0&lt;/Price&gt;
          &lt;Media&gt;
              &lt;Thumb&gt;b554d5da-d0cd-4c80-bc57-d75c7bfaf782&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/b554d5da-d0cd-4c80-bc57-d75c7bfaf782&lt;/Pic&gt;
              &lt;Thumb&gt;73064b26-4322-4de9-b78b-863296f9688a&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/73064b26-4322-4de9-b78b-863296f9688a&lt;/Pic&gt;
              &lt;Thumb&gt;7d9e2c73-535a-4cde-bb5b-d04af6fb1289&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/7d9e2c73-535a-4cde-bb5b-d04af6fb1289&lt;/Pic&gt;
              &lt;Thumb&gt;51144896-3837-4b70-b767-c34021af9d07&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/51144896-3837-4b70-b767-c34021af9d07&lt;/Pic&gt;
              &lt;Thumb&gt;5915d1d5-8e84-4cbc-b7cf-d2131f8fb880&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/5915d1d5-8e84-4cbc-b7cf-d2131f8fb880&lt;/Pic&gt;
              &lt;Thumb&gt;e052992a-21bc-4473-ab5d-ecae8f50c628&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/e052992a-21bc-4473-ab5d-ecae8f50c628&lt;/Pic&gt;
              &lt;Thumb&gt;cebea6d3-bb2a-4389-b132-3cb9a70d5da5&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/cebea6d3-bb2a-4389-b132-3cb9a70d5da5&lt;/Pic&gt;
              &lt;Thumb&gt;039034b9-db10-4c27-857d-0e071212949d&lt;/Thumb&gt;
              &lt;Pic&gt;https://i.autotrader.co.za/merlin-image-server/view/039034b9-db10-4c27-857d-0e071212949d&lt;/Pic&gt;
          &lt;/Media&gt;
          &lt;Colour&gt;Silver&lt;/Colour&gt;
          &lt;AdvertId&gt;4b2fc17fb8574b70a030db286c76aba0&lt;/AdvertId&gt;
          &lt;StockNumber&gt;13498&lt;/StockNumber&gt;
          &lt;AdditionalText&gt;GOOD CONDITION WITH FULL SERVICE HISTORY AND SPARE KEY INCLUDED&lt;/AdditionalText&gt;
          &lt;FuelType&gt;Petrol&lt;/FuelType&gt;
          &lt;TransmissionType&gt;Manual&lt;/TransmissionType&gt;
          &lt;TransmissionDriveType&gt;FWD&lt;/TransmissionDriveType&gt;
          &lt;Doors&gt;5&lt;/Doors&gt;
          &lt;BodyType&gt;Hatchback&lt;/BodyType&gt;
      &lt;/row&gt;
  </code></pre>
  
  <p>I am able to retrieve all tags fine, except the 'Pic' tags within the 'Media' tags.
  My Code is as follows:</p>
  
  <pre><code>private XmlDocument GetRootLevelServiceDocument(string serviceEndPoint, string oAuthToken)
          {
              HttpWebRequest request = CreateHttpRequest(serviceEndPoint,
                  oAuthToken);
              XmlDocument xmlDoc = new XmlDocument();
              using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
              {
                  using (Stream responseStream = response.GetResponseStream())
                  {
                      if (responseStream != null)
                      {
  
                          using (StreamReader reader = new StreamReader(responseStream))
                          {
                              string r = reader.ReadToEnd();
                              XmlDocument doc = new XmlDocument();
                              doc.LoadXml(r);
                              XmlNodeList xnList = doc.SelectNodes("/root/row");
                              foreach (XmlNode xn in xnList)
                              {
                                  string img = "";
                                  double install = 3000;
                                  divVehicles.InnerHtml += "&lt;div class='inventory margin-bottom-20 clearfix scroll_effect fadeIn'&gt;&lt;a class='inventory' href='inventory-listing.html'&gt;";
                                  divVehicles.InnerHtml += "&lt;div class='title'&gt;"+ xn["Year"].InnerText +" "+ xn["Make"].InnerText  +" " + xn["Model"].InnerText + " " + xn["Derivative"].InnerText+ "&lt;/div&gt;";
                                  divVehicles.InnerHtml += "&lt;img src='"+ img + "' class='preview' alt='Image'&gt;";
                                  divVehicles.InnerHtml += "&lt;table class='options-primary'&gt;&lt;tr&gt;&lt;td class='option primary'&gt;Mileage:&lt;/td&gt;";
                                  divVehicles.InnerHtml += "&lt;td class='spec'&gt;"+ xn["Mileage"].InnerText + "km&lt;/td&gt;";
                                  divVehicles.InnerHtml += "&lt;/tr&gt;&lt;tr&gt;&lt;td class='option primary'&gt;Colour:&lt;/td&gt;&lt;td class='spec'&gt;"+ xn["Colour"].InnerText + "&lt;/td&gt;";
                                  divVehicles.InnerHtml += "&lt;/tr&gt;&lt;tr&gt;&lt;td class='option primary'&gt;Transmission:&lt;/td&gt;&lt;td class='spec'&gt;" + xn["TransmissionType"].InnerText + "&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;";
                                  divVehicles.InnerHtml += "&lt;td class='option primary'&gt;Fuel:&lt;/td&gt;&lt;td class='spec'&gt;" + xn["FuelType"].InnerText + "&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;";
                                  divVehicles.InnerHtml += "&lt;table class='options-secondary'&gt;&lt;tr&gt;&lt;td class='option secondary'&gt;YOU GET:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class='spec'&gt;- A FREE full tank of Fuel&lt;/td&gt;";
                                  divVehicles.InnerHtml += "&lt;/tr&gt;&lt;tr&gt;&lt;td class='spec'&gt;- ...&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class='spec'&gt;- ...&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;";
                                  divVehicles.InnerHtml += "&lt;img src='images/firstcar.jpg' alt='image' class='carfax' /&gt;";
                                  divVehicles.InnerHtml += "&lt;div class='view-video gradient_button' data-youtube-id='3oh7PBc33dk'&gt;&lt;i class='fa fa-video-camera'&gt;&lt;/i&gt;Finance Now&lt;/div&gt;&lt;div class='price'&gt;&lt;b&gt;Full Price: R" + xn["Price"].InnerText + "&lt;/b&gt;&lt;br&gt;";
                                  divVehicles.InnerHtml += "&lt;div class='figure'&gt;R"+install+".00 pm&lt;br&gt;&lt;/div&gt;&lt;div class='tax'&gt;Pay Less? Ask us how!&lt;/div&gt;&lt;/div&gt;";
                                  divVehicles.InnerHtml += "&lt;div class='view-details gradient_button'&gt;&lt;i class='fa fa-plus-circle'&gt;&lt;/i&gt; View Details &lt;/div&gt;&lt;div class='clearfix'&gt;&lt;/div&gt; &lt;/a&gt;&lt;/div&gt;";
                              }
                              xmlDoc = doc;
                            //  test.InnerHtml =  Server.HtmlEncode(doc.InnerXml);
                         }
                      }
                  }
  
                  return xmlDoc;
  
              }
  </code></pre>
  
  <p>What is the correct manner to access the "" tags? Forgive my ignorance.
  Thanks in advance.</p>