- ancestor 选取当前节点的所有先辈(父、祖父等)。
- ancestor-or-self 选取当前节点的所有先辈(父、祖父等)以及当前节点本身。
- attribute 选取当前节点的所有属性。
- child 选取当前节点的所有子元素。
- descendant 选取当前节点的所有后代元素(子、孙等)。
- descendant-or-self 选取当前节点的所有后代元素(子、孙等)以及当前节点本身。
- following 选取文档中当前节点的结束标签之后的所有节点。
- namespace 选取当前节点的所有命名空间节点。
- parent 选取当前节点的父节点。
- preceding 选取文档中当前节点的开始标签之前的所有节点。
- preceding-sibling 选取当前节点之前的所有同级节点。
- self 选取当前节点。
- http://www.w3school.com.cn/xpath/index.asp
- https://stackoverflow.com/questions/38199646/xpath-flatten-text-excluding-certain-nodes

