XPath Tutorial

来源:互联网 发布:java filter 原理 编辑:程序博客网 时间:2024/05/17 14:28

1. / is the root node in the xpath.

2. /root/parent/children  :   return children nodes

3. /root/parent/children[1]  :   return children node

 

4. /root/parent/children[@name='dd']:  return a specified child node

5. /root/parent/children[@name='dd']/@name:  return a specified child node name

 

text()/@attribute/last()/position()

 

Please refer to http://labs.openlaszlo.org/trunk-nightly/docs/developers/data-structures.html  for more details.