title: XPath : select all following siblings until another sibling
body: <p>Here is an excerpt of my xml :</p>
  
  <pre><code>&lt;node/&gt;
  &lt;node/&gt;
  &lt;node id="1"&gt;content&lt;/node&gt;
  &lt;node/&gt;
  &lt;node/&gt;
  &lt;node/&gt;
  &lt;node id="2"&gt;content&lt;/node&gt;
  &lt;node/&gt;
  &lt;node/&gt;
  </code></pre>
  
  <p>I am positioned in the <code>node[@id='1']</code>. I need an Xpath to match all the <code>&lt;node/&gt;</code> elements until the next not empty node (here <code>node[@id='2']</code>). </p>
  
  <hr>
  
  <p><strong>Edit:</strong> 
  the @id attributes are only to explain my problem more clearly, but are not in my original XML. I need a solution which does not use the @id attributes.</p>
  
  <hr>
  
  <p>I do <strong>not</strong> want to match the empty siblings after <code>node[@id='2']</code>, so I can't use a naive <code>following-sibling::node[text()='']</code>.</p>
  
  <p>How can I achieve this ?</p>