| 类 | 说明 |
|---|---|
| AncestorOrSelfSelector |
the ancestor-or-self axis contains the context node and the ancestors of the context node;
thus, the ancestor axis will always include the root node
|
| AncestorSelector |
the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of
the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include
the root node, unless the context node is the root node
|
| AttributeSelector |
the attribute axis contains the attributes of the context node; the axis will be empty unless the context node is an element
|
| ChildSelector |
the child axis contains the children of the context node
|
| DescendantOrSelfSelector |
the descendant-or-self axis contains the context node and the descendants of the context node
|
| DescendantSelector |
the descendant axis contains the descendants of the context node; a descendant is a child or a child
of a child and so on; thus the descendant axis never contains attribute or namespace nodes
|
| FollowingSelector |
the following axis contains all nodes in the same document as the context node that are after the context node in
document order, excluding any descendants and excluding attribute nodes and namespace nodes
|
| FollowingSiblingOneSelector |
the following-sibling-one JsoupXpath自定义扩展,比较常用
|
| FollowingSiblingSelector |
the following-sibling axis contains all the following siblings of the context node; if the context node is an
attribute node or namespace node, the following-sibling axis is empty
|
| ParentSelector |
the parent axis contains the parent of the context node, if there is one
https://www.w3.org/TR/1999/REC-xpath-19991116/#NT-AxisSpecifier
|
| PrecedingSelector |
the preceding axis contains all nodes in the same document as the context node that are before the context
node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes
|
| PrecedingSiblingOneSelector |
the preceding-sibling-one axis JsoupXpath自定义扩展,用于选取节点的前一个兄弟节点,如果存在的话。
|
| PrecedingSiblingSelector |
the preceding-sibling axis contains all the preceding siblings of the context node; if the context node is
an attribute node or namespace node, the preceding-sibling axis is empty
|
| SelfSelector |
the self axis contains just the context node itself
|
Copyright © 2018. All Rights Reserved.