Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

top id from xml

瀏覽次數:0 次
跳到第一則未讀訊息

kal

未讀,
2007年6月21日 下午5:34:362007/6/21
收件者:
i have some xml like this
<rt>
<item id="1">txt</item>
<item id="2">txt</item>
<item id="5">txt</item>
<item id="4">txt</item>
</rt>

what xpath can I use to get the highest id? i.e. 5

thanks

Kal


Dimitre Novatchev

未讀,
2007年6月21日 晚上9:15:202007/6/21
收件者:

"kal" <a...@noplace.com> wrote in message
news:M9Cei.2843$aJ3...@newsfe4-gui.ntli.net...


/*/item/@id[not(. &lt; ../../item/@id)]


Hope this helped.


Cheers,
Dimitre Novatchev


0 則新訊息