Hello
I have converted an HTML page to xml file and then from this xml file I need to get some data, but I need to get this data based on the stock name so how I can do this in xpath expression?
my xml piece file is
- <table cellpadding="0" cellspacing="0" width="100%">
- <tbody>
- <tr class="TightListLightRowTR">
<td class="TightListStandardTD"> </td>
- <td class="TightListStandardTD">
<a href="javascript
penSW('49','CH0012221716');">ABB Ltd</a> "in this tage my stock name"
</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,25</td>
- <td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">
<span class="BlueText">0,51</span>
</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">0,75</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,25</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,50</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,75</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">142,75</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">19,96</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">230,36</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top"> 000529</td>
</tr>
so I need to write xpath expression to get these numeric values based on the stock name in the tag <a> "i put a notice where is it in xml piece" ?
so please can anyone help me in this?
I have converted an HTML page to xml file and then from this xml file I need to get some data, but I need to get this data based on the stock name so how I can do this in xpath expression?
my xml piece file is
- <table cellpadding="0" cellspacing="0" width="100%">
- <tbody>
- <tr class="TightListLightRowTR">
<td class="TightListStandardTD"> </td>
- <td class="TightListStandardTD">
<a href="javascript
</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,25</td>
- <td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">
<span class="BlueText">0,51</span>
</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">0,75</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,25</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,50</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">147,75</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">142,75</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">19,96</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top">230,36</td>
<td align="right" class="TightListStandardTD" nowrap="nowrap" valign="top"> 000529</td>
</tr>
so I need to write xpath expression to get these numeric values based on the stock name in the tag <a> "i put a notice where is it in xml piece" ?
so please can anyone help me in this?