()
| 221 | } |
| 222 | |
| 223 | func (x *NodeNavigator) MoveToParent() bool { |
| 224 | if x.attr != -1 { |
| 225 | x.attr = -1 |
| 226 | return true |
| 227 | } else if node := x.curr.Parent; node != nil { |
| 228 | x.curr = node |
| 229 | return true |
| 230 | } |
| 231 | return false |
| 232 | } |
| 233 | |
| 234 | func (x *NodeNavigator) MoveToNextAttribute() bool { |
| 235 | if x.attr >= len(x.curr.Attr)-1 { |
no outgoing calls