title: How can I read specific elements from XML string using XMLREADER in C#
body: <p>I have XML String:</p>
  
  <pre><code>   &lt;GroupBy Collapse=\"TRUE\" GroupLimit=\"30\"&gt;
        &lt;FieldRef Name=\"Department\" /&gt;
     &lt;/GroupBy&gt;
     &lt;OrderBy&gt;
        &lt;FieldRef Name=\"Width\" /&gt;
     &lt;/OrderBy&gt;
  </code></pre>
  
  <p>I am new in C#. I tried to read the Name attribute of the FieldRef element for both elements but I could not. I used XMLElement , is there any way to pick these two values?</p>