« links for 2006-06-26 | 回到主頁面 | links for 2006-06-29 »

June 29, 2006

Search from attributes use XPATH


將此網頁加入【百度收藏】... 加入此網頁到【del.icio.us 書籤】 technorati

To search a attribute via XPATH. you can use Element[@Attr] to address it in XPATH.

So~~ to search some specific search as follow:

1. product@cost which is > 5000, you can write as follow.

product[@cost > '5000']

2. product@name contains "yellow" (case-insensitivity).

contains(translate(product[@name], 'ABC...Z', 'abc....z'), translate('yellow', 'ABC...Z', 'abc....z'))



VC6相關問題 / XML, XSLT, XPATH, 所有與XML相關的

由 Evan 發表於 June 29, 2006 將此網頁加入【百度收藏】... 加入此網頁到【del.icio.us 書籤】 technorati
引用
本文的引用網址:


以下是前來引用的連結 'Search from attributes use XPATH' 來自 Blog E
迴響
發表迴響









記住我的資訊?




(請輸入以下的驗證碼)