title: xpath get the <ul> list element based on non-empty index
body: <pre><code>&lt;ul id="statsArrayRow"&gt;
      &lt;li&gt;&lt;/li&gt;
      &lt;li&gt;19&lt;/li&gt;
      &lt;li&gt;44&lt;/li&gt;
      &lt;li&gt;48&lt;/li&gt;
      &lt;li&gt;35&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>In above list, first element has no text content. I want to get element based on non-empty index.
  The first non-empty element is 19, second is 44 and so on.</p>
  
  <p>This following xpath returns 19 by index 2 and but i want to get 44 by index 2</p>
  
  <pre><code>//ul[@id='statsArrayRow']/li[2])
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>//ul[@id='statsArrayRow' and string-length(text()) &gt; 0]/li[2])
  </code></pre>
  
  <p>It also returns 19 instead of 44.</p>
  
  <p>How can we ignore non-empty element for index?</p>