title: Parse through XML
body: <p>I've been reading through many tutorials and examples, but I'm lost. I have an XML file with this type of data:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;properties&gt;
    &lt;property&gt;
      &lt;name&gt;Client Property A&lt;/name&gt;
      &lt;phone&gt;Client Property A Phone Number&lt;/phone&gt;
    &lt;/property&gt;
    &lt;property&gt;
      &lt;name&gt;Client Property B&lt;/name&gt;
      &lt;phone&gt;Client Property B Phone Number&lt;/phone&gt;
    &lt;/property&gt;
    &lt;property&gt;
      &lt;name&gt;Client Property C&lt;/name&gt;
      &lt;phone&gt;Client Property C Phone Number&lt;/phone&gt;
    &lt;/property&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>I'm trying to parse through this data in C# but having no luck at all. I have this:</p>
  
  <pre><code>XmlTextReader xmldata = new XmlTextReader("http://url.to/xml");
     XmlNodeList xmllist = doc.GetElementsByTagName("property");
     processList( xmllist );
  
  public void processList(XmlNodeList xmllist)
      {
          // Loop through each property node and list the information
          foreach (XmlNode node in xmllist)
          {
              XmlElement nodeElement = (XmlElement)node;
              txtBox.AppendText(nodeElement.GetElementsByTagName("name")[0].InnerText);
              txtBox.AppendText(nodeElement.GetElementsByTagName("phone")[0].InnerText);
          }
      }
  </code></pre>
  
  <p>But nothing gets output in to my text box. :(</p>