Select selects a node set using the specified XPath expression. This method is deprecated, recommend using Expr.Select() method instead.
(root NodeNavigator, expr string)
| 96 | // Select selects a node set using the specified XPath expression. |
| 97 | // This method is deprecated, recommend using Expr.Select() method instead. |
| 98 | func Select(root NodeNavigator, expr string) *NodeIterator { |
| 99 | exp, err := Compile(expr) |
| 100 | if err != nil { |
| 101 | panic(err) |
| 102 | } |
| 103 | return exp.Select(root) |
| 104 | } |
| 105 | |
| 106 | // Expr is an XPath expression for query. |
| 107 | type Expr struct { |
searching dependent graphs…