title: C# .Net Parsing XML Strings
body: <p>I have been reading over old threads here as well as pages I found on Google, and I can honestly say this has confused me completely. It seems there is about 1000 ways to parse XML strings using C# .NET and I don't know which to use. It seems all examples I find rely on a specific named root node and so on.</p>
  
  <p>What I have is...</p>
  
  <pre><code>&lt;whmcsapi version="4.1.2"&gt; 
   &lt;action&gt;getstaffonline&lt;/action&gt; 
   &lt;result&gt;success&lt;/result&gt; 
   &lt;totalresults&gt;1&lt;/totalresults&gt; 
   &lt;staffonline&gt; 
    &lt;staff&gt; 
     &lt;adminusername&gt;Admin&lt;/adminusername&gt; 
     &lt;logintime&gt;2010-03-03 18:29:12&lt;/logintime&gt; 
     &lt;ipaddress&gt;127.0.0.1&lt;/ipaddress&gt; 
     &lt;lastvisit&gt;2010-03-03 18:30:43&lt;/lastvisit&gt; 
    &lt;/staff&gt; 
   &lt;/staffonline&gt; 
  &lt;/whmcsapi&gt;
  </code></pre>
  
  <p>I only need to get the values for  and each staff member's information (enclosed in  tags). Can anyone tell me what the best way to do this would be and possibly a small example?</p>
  
  <p>Thanks!</p>