Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XPath - refer to contents of cells as values XPath - refer to contents of cells as valuesTo: NULL Date: 8/3/2006 8:34:00 AM
HI,
I'm new to xpath queries, and have run into an issue I thought people
might be able to put me back on track with:
I have a chunk of xml that goes something like
<table>
<col>keycol</col>
<col>valuecol</col>
<tr>
<td>1</td>
<td>value1</td>
</tr>
<tr>
<td>2</td>
<td>value2</td>
</tr>
</table>
I'd like to be able to query this as one would a table in SQL something
like "select valuecol from table where keycol=2"
but I need this in an xpath so /table/tr/td
I understand how to do this with properties (then it would be easy to
write something like /table/tr/td[@keycol=2]/@value) but how can I
refer to the contents of a cell as a property in a similar way.
Thanks in advance for just reading this, even more if you help.
Cheers
Someone
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
