MoveNext moves Navigator to the next match node.
()
| 83 | |
| 84 | // MoveNext moves Navigator to the next match node. |
| 85 | func (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. |