Sujit Soni Sujit Soni - 9 months ago 59
HTML Question

How to get text outside tag

Want to get text which is outside a tag. Here is the HTML:

<table border="0" cellpadding="0" cellspacing="0" width="100%"
<b style="border: 2px solid red;
background: rgb(204, 136, 136);">Viewing Conducted: </b>
<td style=""><b style="">Duration: </b> 1 hr</td>
<td style=""><b style="">Comments: </b>66yy</td>

I wanted to get date i.e

I tried following XPath, but it does not work:


Guy Guy

The text is in the <td> tag, not the <b>. Try