posts - 66,  comments - 40,  trackbacks - 0
1、作用:选择符合特定条件的XML节点。
2、 XPath采用的是非XML语法,非常类似于文件系统路径的语法。
3、IE中的XPath:
      var oFirstAuther = oXmlDom.documentElement.selectSingleNode("book/author");
    //返回documentElement的上下文中<book/>元素子节点的第一个<auther/>元素

      var cAuthors = oXmlDom.documentElement.selectNodes("book/author");
   //返回documentElement的上下文中<book/>元素子节点的所有<auther/>元素
posted on 2006-12-13 16:14 happytian 阅读(160) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2006年12月>
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

Welcome here, my friend!

常用链接

留言簿(12)

随笔档案(66)

文章分类

文章档案(63)

web

最新随笔

搜索

  •  

积分与排名

  • 积分 - 87866
  • 排名 - 645

最新评论

阅读排行榜

评论排行榜