title: xpath to get the entire xml tree structure
body: <p>Is there a way using xpath to obtain the entire tree structure. For example, say this is the xml</p>
  
  <pre><code>&lt;a&gt;
     &lt;b&gt;
        &lt;c&gt;
           data
        &lt;/c&gt;
     &lt;/b&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>I would like the xpath to pick up all the contents of the  node and the result should be</p>
  
  <pre><code>  &lt;b&gt;
       &lt;c&gt;
          data
       &lt;/c&gt;
    &lt;/b&gt;
  </code></pre>
  
  <p>I have been using VTD-XML and java so far to retrieve the elements so far. This is the code I have been using.</p>
  
  <pre><code>    VTDGen vg = new VTDGen();
      vg.setDoc(xmlString);
      vg.parse(true);
      VTDNav vn = vg.getNav();
      AutoPilot ap = new AutoPilot(vn);
      ap.selectXPath(xPath);
      String data = ap.evalXPathToString();
  </code></pre>