title: C# How to extract complete xml node set
body: <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
   &lt;bookstore&gt;
    &lt;book category="COOKING"&gt; 
      &lt;title lang="en"&gt;Everyday Italian&lt;/title&gt;
      &lt;author&gt;Giada De Laurentiis&lt;/author&gt;    
      &lt;year&gt;2005&lt;/year&gt;
     &lt;price&gt;30.00&lt;/price&gt;
    &lt;/book&gt;
  
    &lt;book category="CHILDREN"&gt;
     &lt;title lang="en"&gt;Harry Potter&lt;/title&gt;
     &lt;author&gt;J K. Rowling&lt;/author&gt;
     &lt;year&gt;2005&lt;/year&gt;
     &lt;price&gt;29.99&lt;/price&gt;
    &lt;/book&gt;
  
    &lt;book category="WEB"&gt;
     &lt;title lang="en"&gt;XQuery Kick Start&lt;/title&gt;
     &lt;author&gt;James McGovern&lt;/author&gt;
     &lt;author&gt;Per Bothner&lt;/author&gt;
     &lt;author&gt;Kurt Cagle&lt;/author&gt;
     &lt;author&gt;James Linn&lt;/author&gt;
     &lt;author&gt;Vaidyanathan Nagarajan&lt;/author&gt;
     &lt;year&gt;2003&lt;/year&gt;
     &lt;price&gt;49.99&lt;/price&gt;
    &lt;/book&gt;
  
    &lt;book category="WEB"&gt;
     &lt;title lang="en"&gt;Learning XML&lt;/title&gt;
     &lt;author&gt;Erik T. Ray&lt;/author&gt;
     &lt;year&gt;2003&lt;/year&gt;
     &lt;price&gt;39.95&lt;/price&gt;
    &lt;/book&gt;
  
  &lt;/bookstore&gt;
  </code></pre>
  
  <p>Is their any way using XPath to select the complete first node set, for example from </p>
  
  <pre><code> &lt;book category="COOKING"&gt;  
    to 
   &lt;/book&gt;, 
  </code></pre>
  
  <p>so that, that chunk of xml can be stored for later use.</p>
  
  <p>Bob.</p>