title: XSL FO Reading first fo:table node just after a concrete comment
body: <p>I have a big XSL FO file.</p>
  
  <p>In this file I have multiple fo:table objects nested and all them are not identified through a unique id attribute to allow search each one by its unique Id.
  Each fo:table, has a comment just at the beginning which contains and unique Id, but this Id is not always the same, it is different each time, even for the same table. Anyway I know how to search for this comment by analyzing the file structure that is always the same.</p>
  
  <p>Now I have the comment object that I want but now I am facing with the following problem: I need to get the first object immediatelly following this comment, in this case, first fo:table object. So how can I do this?</p>
  
  <pre><code>&lt;!--  begin table FOPTable { id: 1005 cur_size: 0.0 prv_size: 3.25    prev: 1004 cols: 1 locks: 3 flow:null }    --&gt; 
  
  &lt;fo:table font-size="8pt" font-family="sans-serif" table-layout="fixed"&gt;   &lt;fo:table-column column-width="14.35cm" /&gt; 
  &lt;fo:table-body&gt;
    &lt;fo:table-row&gt;
      &lt;fo:table-cell padding-top="2.0pt" padding-right="2.0pt" font-family="sans-serif" font-size="8pt"&gt;   &lt;fo:block    text-align="end"&gt;LINE 1&lt;/fo:block&gt;    
      &lt;/fo:table-cell&gt;
    &lt;/fo:table-row&gt;
    &lt;fo:table-row&gt;
      &lt;fo:table-cell padding-top="2.0pt" padding-right="2.0pt" font-family="sans-serif" font-size="8pt"&gt;
        &lt;fo:block text-align="end"&gt;LINE 2&lt;/fo:block&gt;
      &lt;/fo:table-cell&gt;      
     &lt;/fo:table-row&gt;   
  &lt;/fo:table-body&gt;   
  &lt;/fo:table&gt;
  </code></pre>