xpath learn

Error:Invalid predicate

reason:

1、//node[@class= 'a']/text() --> //node/[@class= "a"]/text()      must use "

2、//node[@class= "a"/text() --> //node[@class= "a"/text()     miss [ or ]

  

select text of a node and its children

/node//text()

posted on 2014-08-15 08:58  学而知之者  阅读(117)  评论(0编辑  收藏  举报