title: How can I get node I want from XML
body: <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
    &lt;Root&gt;
         &lt;Fruits&gt;
              &lt;Fruit&gt;hahahaha&lt;/Fruit&gt;
         &lt;/Fruits&gt;
    &lt;/Root&gt;
  </code></pre>
  
  <p>If I try this code,</p>
  
  <pre><code>  string[] cFruitName; int i=0;
    XmlDocument a= new XmlDocument();
    a.LoadXml(getXML());
  
    foreach (XmlNode xn in a)
    {
       cFruitName[i] = xn.Text;
       i++;
    }
  </code></pre>
  
  <p>but I am getting <code>null</code> for <code>xn.Text</code>. </p>
  
  <p>All I want is to get values of fruit, like "hahahah" in this example.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I changed my XML now.</p>