title: C# XML How to retrive innerText of field by attribute?
body: <p>Here is the XML sample:</p>
  
  <pre><code>  &lt;?xml version="1.0" ?&gt; 
    &lt;XMLScreen xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;CX&gt;80&lt;/CX&gt; 
    &lt;CY&gt;24&lt;/CY&gt; 
    &lt;Formatted&gt;true&lt;/Formatted&gt; 
    &lt;Field&gt;
    &lt;Location position="1" left="1" top="0" length="69" /&gt; 
    &lt;Attributes Base="226" Protected="false" FieldType="High" /&gt; 
    *SDC SCHEDULING CATEGORY UPDATE 
    &lt;/Field&gt;
    &lt;/XMLScreen&gt;
  </code></pre>
  
  <p>I want to retrive the Inner text of each field based on its <code>Location position</code>.</p>
  
  <p>What I have so far is:</p>
  
  <pre><code>  XmlDocument xmlDoc = new XmlDocument();
    xmlDoc.LoadXml(myEm.CurrentScreenXML.GetXMLText());
    XmlNodeList fields = xmlDoc.GetElementsByTagName("Field");
  
    MessageBox.Show("Field spot: " + i + " Contains: " + fields[i].InnerText);
  </code></pre>
  
  <p>And I want to be able to just extract the inner text of the field by passing in a number of the location position. So if I say <code>foo[i]</code> I want to be able to get the innertext </p>
  
  <blockquote>
    <p>*SDC SCHEDULING CATEGORY UPDATE</p>
  </blockquote>