enum XPath2::NodeType

Overview

NodeType represents XPath node.

Defined in:

xpath2.cr

Enum Members

Root = 0
Element = 1

Root node of the XML document or node tree.

Attribute = 2

Element node such as <element>

Text = 3

Attribute node, such as id='123'

Comment = 4

Text Node, text contents of a node

Any = 5

Comment Node, such as <!-- comments -->

Instance Method Summary

Instance Method Detail

def any? #

[View source]
def attribute? #

[View source]
def comment? #

[View source]
def element? #

[View source]
def root? #

[View source]
def text? #

[View source]