()
| 240 | } |
| 241 | |
| 242 | func (x *NodeNavigator) MoveToChild() bool { |
| 243 | if x.attr != -1 { |
| 244 | return false |
| 245 | } |
| 246 | if node := x.curr.FirstChild; node != nil { |
| 247 | x.curr = node |
| 248 | return true |
| 249 | } |
| 250 | return false |
| 251 | } |
| 252 | |
| 253 | func (x *NodeNavigator) MoveToFirst() bool { |
| 254 | if x.attr != -1 || x.curr.PrevSibling == nil { |
no outgoing calls