MCPcopy Create free account
hub / github.com/antchfx/xmlquery / MoveToNext

Method MoveToNext

query.go:271–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269}
270
271func (x *NodeNavigator) MoveToNext() bool {
272 if x.attr != -1 {
273 return false
274 }
275 for node := x.curr.NextSibling; node != nil; node = x.curr.NextSibling {
276 x.curr = node
277 if x.curr.Type != TextNode || strings.TrimSpace(x.curr.Data) != "" {
278 return true
279 }
280 }
281 return false
282}
283
284func (x *NodeNavigator) MoveToPrevious() bool {
285 if x.attr != -1 {

Callers 1

TestNavigatorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNavigatorFunction · 0.76