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

Method MoveNext

xpath.go:85–94  ·  view source on GitHub ↗

MoveNext moves Navigator to the next match node.

()

Source from the content-addressed store, hash-verified

83
84// MoveNext moves Navigator to the next match node.
85func (t *NodeIterator) MoveNext() bool {
86 n := t.query.Select(t)
87 if n == nil {
88 return false
89 }
90 if !t.node.MoveTo(n) {
91 t.node = n.Copy()
92 }
93 return true
94}
95
96// Select selects a node set using the specified XPath expression.
97// This method is deprecated, recommend using Expr.Select() method instead.

Callers 5

ExampleFunction · 0.80
TestMustCompileFunction · 0.80
iterateNavsFunction · 0.80
iterateNodesFunction · 0.80
asBoolFunction · 0.80

Calls 3

SelectMethod · 0.65
MoveToMethod · 0.65
CopyMethod · 0.65

Tested by 4

ExampleFunction · 0.64
TestMustCompileFunction · 0.64
iterateNavsFunction · 0.64
iterateNodesFunction · 0.64