Sujit Soni Sujit Soni - 1 year ago 119
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
Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download