title: read the data from XML Structure using c#
body: <p>I store the xml file in one <strong>string object</strong> like,I stored the xml structure in <strong>local variable string abcd</strong> in c#.</p>
  
  <pre><code> &lt;structure&gt;
      &lt;a&gt;Test Name&lt;/a&gt;
      &lt;e&gt;test address&lt;/e&gt;
      &lt;c&gt;
         &lt;c1&gt;yyyy&lt;c1&gt;
         &lt;c2&gt;xxxx&lt;/c2&gt;
      &lt;/c&gt;
      &lt;/structure&gt;
  </code></pre>
  
  <p>How to read(parse) this xml string using c# and store the tag a,and tag c1 ,tag c2 values in local variable using c#.</p>
  
  <p>i tried like</p>
  
  <pre><code>        XmlDocument xmldoc = new XmlDocument();
          xmldoc.LoadXml(abcd);
  
          XmlElement element = (XmlElement)xmldoc.GetElementById("a");
  </code></pre>
  
  <p>but i get null value.how to read the values from xml structure and stored in local variable using c#?</p>