I want to get the last item which the last item in the specific tags,

I mean ;

```
     <tr>
        <td><b>my name</b></td>
        <td><spec id="nm" nm="eg">Example Name</spec>   
        </td>
    </tr>
    ....

 <tr>
    <td><b>samp2</b></td>
    <td title="samp2"><div>Example 2</div>
    </td>
 </tr>

```

I want to reach `"Example Name"` I want to write a dynamic program? How can I do that?

(you can see the the last tag is `"spec"` maybe the other scenerio the last tag is `sam` how can I find last tag inner html? second sample I want to get `Example 2`)

updated sample
--------------

if I has this :

```
<table>
  <tr>
    <td>1</td>
    <td><div>2</div></td>
  </tr> 
  <tr>
    <td><span>3</span></td> 
    </tr>
</table>

```

So I need the output should be: 

2 and 3
-------

because they are the last tags inner html under `tr` tag.

(I want to last tag under tr tag , but if it has child element I want to its inner html)

thanks in advance?