title: Parsing an XML document and
body: <p>I basically want to print out just the names of my XML document into a textbox.</p>
  
  <p>All this does it print the first name.</p>
  
  <pre><code>XmlDocument xDoc = new XmlDocument();
  xDoc.Load("my documents address");
  TextBox2.Text = xDoc.SelectSingleNode("Web_Service/Food/Name").InnerText;
  </code></pre>
  
  <p>What I'd like to do is something like this...</p>
  
  <pre><code>String[] output;
  
  XmlDocument xDoc = new XmlDocument();
  xDoc.Load("my documents address");
  
  foreach(Name i in xDoc){
      append i to output;
  }
  
  TextBox2.Test = output;
  </code></pre>
  
  <p>Or something similar. If someone could help me I'd really appreciate it. </p>
  
  <p>So it prints out: </p>
  
  <p>Curry, Chicken, Burger, Steve, Spices, etc.</p>