title: Match the tags in jsoup
body: <p>I want to match the tag from tag hierarchy</p>
  <pre><code>&lt;table class='tabletext'&gt;
      &lt;tr align='center' style='background:#FFFFFF'&gt;
          &lt;td&gt;&lt;span id='fd'&gt;&lt;span&gt;10&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
          &lt;td&gt;10.00&lt;/td&gt;
          &lt;td&gt;&amp;pound;0.00&lt;/td&gt;
          &lt;td&gt;&amp;pound;280.00&lt;/td&gt;
          &lt;td&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href=''&gt;ok&lt;/a&gt;&lt;/li&gt;+
              &lt;/ul&gt;
              &lt;a href='/cart.php?action=add&amp;qty=10&amp;id=2628' title='Click here to add this item to your cart'&gt;
                  &lt;img alt='Click here to add this item to your cart' src='/images/addtocart.gif' border='0' /&gt;
              &lt;/a&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;&lt;span&gt;Hello2&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;+
  &lt;/table&gt;
  </code></pre>
  <p>Here is my code:</p>
  <pre><code>Document doc = Jsoup.parseBodyFragment(html);
              
          Elements element = doc.select(&quot;.tabletext &gt; * &gt; * &gt; * &gt; span&quot;);
          
          System.out.println(element.html());
  </code></pre>
  <p>Output is:</p>
  <pre><code>&lt;span&gt;10&lt;span&gt;
  hello2
  </code></pre>
  <p>But I don't know how much tags in between <code>.tabletext</code> and <code>span</code> there are, so in that case what should be the:</p>
  <pre><code>Elements element = doc.select(&quot;.tabletext &gt; span&quot;);
  </code></pre>
  <p>code for fetching above output. How to arrange <code>* &gt;</code> for that output?</p>