title: How to get the XML Node via XPath
body: <p>I have a XML :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;Root&gt;
      &lt;Class&gt;
          &lt;Room&gt;
              1
          &lt;/Room&gt;
          &lt;Subject&gt;
              English
          &lt;/Subject&gt;
      &lt;/Class&gt;
      &lt;Class&gt;
          &lt;Room&gt;
              2
          &lt;/Room&gt;
          &lt;Subject&gt;
              Maths
          &lt;/Subject&gt;
      &lt;/Class&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>I am using it as a datasource for my grid , i have used xmldatasource and xpath for that .</p>
  
  <pre><code>PrimaryDataSource = new XmlDataSource();
  PrimaryDataSource.EnableCaching = false;
  PrimaryDataSource.Data = ClassXML;
  return PrimaryDataSource;
  </code></pre>
  
  <p>and accessing the nodes in client side as:
  XPath("Room") &amp; XPath("Subject")</p>
  
  <p>Which gives me the values of that particular attributes.</p>
  
  <p>Now i want to get the whole XML root form client side, one <code>Class</code> root only.</p>
  
  <pre><code>&lt;Class&gt;
      &lt;Room&gt;
          1
      &lt;/Room&gt;
      &lt;Subject&gt;
          English
      &lt;/Subject&gt;
  &lt;/Class&gt;
  </code></pre>
  
  <p>Can anybody tell me how can i get it thru XPath or other methods.</p>