Get index of html element
<p>i have html code that looks like the following:</p>

<pre><code>String html = "&lt;html&gt;&lt;head&gt;&lt;style type=\"text/css\"&gt;&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=\"font-family:times new roman,new york,times,serif;font-size:14pt\"&gt;first text&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=\"font-family: times new roman,new york,times,serif; font-size: 14pt;\"&gt;&lt;br&gt;&lt;div style=\"font-family: times new roman,new york,times,serif; font-size: 12pt;\"&gt;&lt;font size=\"2\" face=\"Tahoma\"&gt;&lt;hr size=\"1\"&gt;&lt;b&gt;&lt;span style=\"font-weight: bold;\"&gt;one:&lt;/span&gt;&lt;/b&gt; second text&lt;br&gt;&lt;b&gt;&lt;span style=\"font-weight: bold;\"&gt;two:&lt;/span&gt;&lt;/b&gt; third text&lt;br&gt;&lt;b&gt;&lt;span style=\"font-weight: bold;\"&gt;three:&lt;/span&gt;&lt;/b&gt; fourth text&lt;br&gt;&lt;b&gt;&lt;span style=\"font-weight: bold;\"&gt;five:&lt;/span&gt;&lt;/b&gt; fifth text&lt;br&gt;&lt;/font&gt;&lt;br&gt;";
</code></pre>

<p>and i was wondering how to get the index of the third div ?</p>
