MCPcopy Create free account
hub / github.com/antchfx/xpath / Select

Function Select

xpath.go:98–104  ·  view source on GitHub ↗

Select selects a node set using the specified XPath expression. This method is deprecated, recommend using Expr.Select() method instead.

(root NodeNavigator, expr string)

Source from the content-addressed store, hash-verified

96// Select selects a node set using the specified XPath expression.
97// This method is deprecated, recommend using Expr.Select() method instead.
98func 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.
107type Expr struct {

Callers 1

selectNodesFunction · 0.85

Calls 2

CompileFunction · 0.85
SelectMethod · 0.65

Tested by 1

selectNodesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…