module

Fetcher::XMLHelper

Helper module for XML node operations to reduce message chains

Instance methods

extract_href(node : XML::Node | Nil) : String | Nil

Extract href from link node

Source
find_attr(node : XML::Node, name : String, attr : String) : String | Nil

Find element by name and get attribute

Source
find_child(node : XML::Node, name : String) : XML::Node | Nil

Find first element child by name

Source
xpath_text(node : XML::Node, path : String) : String | Nil

Extract text content from an xpath result with optional stripping

Source