title: XPath to get all child nodes (elements, comments, and text) without parent
body: <p>I need an XPath to fetch all ChildNodes ( including Text Element, Comment Element &amp; Child Elements ) without Parent Element. Any help</p>
  
  <p>Sample Example:</p>
  
  <pre><code>&lt;DOC&gt;
  &lt;PRESENTEDIN&gt;
      &lt;X&gt;
          First Text Node #1 
          &lt;y&gt; Y can Have Child Nodes # 
              &lt;child&gt; deep to it &lt;/child&gt; 
           &lt;/y&gt;
           Second Text Node #2 &lt;z/&gt; 
      &lt;/X&gt;
      &lt;EVTS&gt;
          &lt;evt/&gt;
          &lt;evt&gt;
              &lt;mtg_descr&gt; SAE 2006 World Congress &amp;amp; Exhibition &lt;/mtg_descr&gt;
              &lt;sess_descr&gt; Advanced Hybrid Vehicle Powertrains (Part 1 of 5) &lt;/sess_descr&gt;
              &lt;loc&gt; Detroit,MI,United States &lt;/loc&gt;
              &lt;sess_prod_grp_cd&gt; TSESS &lt;/sess_prod_grp_cd&gt;
              &lt;sess_evt_name&gt; P13 &lt;/sess_evt_name&gt;
              &lt;sess_gen_num&gt; 138352 &lt;/sess_gen_num&gt;
              &lt;mtg_start_dt&gt; 04/03/2006 &lt;/mtg_start_dt&gt;
              &lt;mtg_end_dt&gt; 04/06/2006 &lt;/mtg_end_dt&gt;
              &lt;desig&gt; CONGRESS-2006 &lt;/desig&gt;
          &lt;/evt&gt;
      &lt;/EVTS&gt;
      &lt;EVTTYPE&gt;PAPER&lt;/EVTTYPE&gt;
      &lt;SUPERTECH&gt;
          &lt;![CDATA[C8585]]&gt;
      &lt;/SUPERTECH&gt;
  &lt;/PRESENTEDIN&gt;
  </code></pre>
  
  <p></p>
  
  <p>XPATH TRIED</p>
  
  <pre><code>   1. $doc/PRESENTEDIN/X
     2. $doc/PRESENTEDIN/X/descendant::*
     2. $doc/PRESENTEDIN/X/self::*
  </code></pre>
  
  <p>EXPECTED OUTPUT</p>
  
  <pre><code>    First Text Node #1 
      &lt;y&gt; Y can Have Child Nodes # 
          &lt;child&gt; deep to it &lt;/child&gt; 
       &lt;/y&gt;
       Second Text Node #2 &lt;z/&gt; 
  </code></pre>
  
  <p>I DON'T WANT</p>
  
  <pre><code>&lt;X&gt;
    First Text Node #1 
          &lt;y&gt; Y can Have Child Nodes # 
              &lt;child&gt; deep to it &lt;/child&gt; 
           &lt;/y&gt;
           Second Text Node #2 &lt;z/&gt; 
  &lt;/X&gt;
  </code></pre>