module XPath2::NodeNavigator

Overview

NodeNavigator provides cursor model for navigating the XML data. Documents planning to provide XPath support should implement this module

Defined in:

xpath2.cr

Instance Method Summary

Instance Method Detail

abstract def copy : NodeNavigator #

does a deep copy of the NodeNavigator and all of its components


[View source]
abstract def local_name : String #

gets the name of the current node


[View source]
abstract def move_to(nav : NodeNavigator) : Bool #

moves the NodeNavigator to the same position as the specificed NodeNavigator


[View source]
abstract def move_to_child : Bool #

moves the NodeNavigator to the first child node of the current node


[View source]
abstract def move_to_first : Bool #

moves the NodeNavigator to the first sibling node of the current node.


[View source]
abstract def move_to_next : Bool #

moves the NodeNavigator to the next sibling of the current node


[View source]
abstract def move_to_next_attribute : Bool #

moves the NodeNavigator to the next attribute on current node


[View source]
abstract def move_to_parent #

moves the NodeNavigator to the parent node of the current node


[View source]
abstract def move_to_previous : Bool #

moves the NodeNavigator to the previous sibling of the current node


[View source]
abstract def move_to_root #

moves the NodeNavigator to the root node of the current node


[View source]
abstract def node_type : NodeType #

returns the XPath::NodeType of the current node


[View source]
abstract def prefix : String #

returns namespace prefix associated with the current node


[View source]
abstract def value : String #

returns the value of the current node


[View source]