struct XML::Node

Defined in:

xml/node.cr

Constant Summary

LOOKS_LIKE_XPATH = /^(\.\/|\/|\.\.|\.$)/

Class Method Summary

Instance Method Summary

Instance methods inherited from struct Struct

==(other : self) : Bool ==, hash : Int32 hash, inspect(io : IO) : Nil inspect, to_s(io) to_s

Instance methods inherited from struct Value

! !, ==(other) ==, nil? nil?

Instance methods inherited from class Object

! !, !=(other) !=, !~(other) !~, ==(other) ==, ===(other) ===, =~(other) =~, class class, clone clone, crystal_type_id crystal_type_id, dup dup, hash hash, inspect
inspect(io : IO)
inspect
, itself itself, not_nil! not_nil!, tap(&block) tap, to_json to_json, to_pretty_json(io : IO)
to_pretty_json
to_pretty_json
, to_s
to_s(io : IO)
to_s
, to_yaml(io : IO)
to_yaml
to_yaml
, try(&block) try

Class methods inherited from class Object

==(other : Class) ==, ===(other) ===, cast(other) : self cast, from_json(string_or_io) from_json, from_yaml(string : String) from_yaml, hash hash, inspect(io) inspect, name : String name, to_s(io) to_s

Class Method Detail

def self.new(node : Pointer(LibXML::Attr)) #

[View source]
def self.new(node : LibXML::DocPtr) #

[View source]
def self.new(node : Pointer(LibXML::Node)) #

[View source]

Instance Method Detail

def ==(other : Node) #

[View source]
def [](attribute : String) #

[View source]
def []?(attribute : String) #

[View source]
def attribute? #

[View source]
def attributes #

[View source]
def cdata? #

[View source]
def children #

[View source]
def comment? #

[View source]
def content #

[View source]
def content=(content) #

[View source]
def document #

[View source]
def document? #

[View source]
def element? #

[View source]
def errors #

[View source]
def first_element_child #

[View source]
def fragment? #

[View source]
def hash #

[View source]
def inner_text #

[View source]
def inspect(io) #

[View source]
def name #

[View source]
def name=(name) #

[View source]
def namespace #

[View source]
def namespace_scopes #

[View source]
def namespaces #

[View source]
def next #

[View source]
def next_element #

[View source]
def next_sibling #

[View source]
def object_id #

[View source]
def parent #

[View source]
def previous #

[View source]
def previous_element #

[View source]
def previous_sibling #

[View source]
def processing_instruction? #

[View source]
def root #

[View source]
def text #

[View source]
def text=(text) #

[View source]
def text? #

[View source]
def to_s(io : IO) #

[View source]
def to_unsafe #

[View source]
def to_xml(indent = 2 : Int, indent_text = " ", options = SaveOptions.xml_default : SaveOptions) #

[View source]
def to_xml(io : IO, indent = 2, indent_text = " ", options = SaveOptions.xml_default : SaveOptions) #

[View source]
def type #

[View source]
def xml? #

[View source]
def xpath(path, namespaces = nil, variables = nil) #

[View source]
def xpath_bool(path, namespaces = nil, variables = nil) #

[View source]
def xpath_float(path, namespaces = nil, variables = nil) #

[View source]
def xpath_node(path, namespaces = nil, variables = nil) #

[View source]
def xpath_nodes(path, namespaces = nil, variables = nil) #

[View source]
def xpath_string(path, namespaces = nil, variables = nil) #

[View source]