輕松

          記述我學習java的里程

          導航

          <2008年9月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          公告

          QQ情況 點擊發送消息給我

          留言簿(16)

          隨筆分類

          收藏夾

          隨筆檔案

          常用鏈接

          統計

          積分與排名

          友情鏈接

          最新評論

          XPATH錯誤方法未知:contains(@” 的解決辦法

          創建xmlDom后加上“xmlDom.setProperty('SelectionLanguage','XPath');
          xPath查詢如:等值查詢:String xPath = "users/user[username='huo' and password='123']";模糊查詢:String xPath = "users/user[contains(username,'huo') and contains(password,'123')]";
           ---------------------------------------------------------------------------------------------------------- 
          XML第二種存儲方式 .xml xPath查詢如:加"@" 用以查詢屬性值等值查詢:String xPath = "users/user[@username='huo' and @password='123']";模糊查詢:String xPath = "users/user[contains(@username,'huo') and contains(@password,'123')]";

          posted on 2008-09-04 12:48 輕松 閱讀(1736) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 沽源县| 辽中县| 岑溪市| 祥云县| 沙田区| 隆化县| 沙洋县| 东光县| 莱芜市| 涪陵区| 大化| 常熟市| 孙吴县| 洪江市| 建始县| 张家界市| 温泉县| 若尔盖县| 米泉市| 沐川县| 临朐县| 招远市| 右玉县| 库尔勒市| 板桥市| 齐河县| 太仆寺旗| 石狮市| 毕节市| 诸暨市| 弥渡县| 高淳县| 湘阴县| 岗巴县| 滨海县| 莒南县| 衡阳县| 宜宾市| 丰宁| 雷山县| 岗巴县|