module Wayfarer::Parsers::XMLParser
A wrapper class for parsing HTML/XML. @private
Public Instance Methods
parse_html(html_str)
click to toggle source
Parses a HTML string. @param [String] html_str the HTML string to parse. @return [Nokogiri::HTML::Document]
# File lib/wayfarer/parsers/xml_parser.rb, line 22 def parse_html(html_str) Nokogiri::HTML(html_str) end
parse_xml(xml_str)
click to toggle source
Parses an XML string. @param [String] xml_str the XML string to parse. @return [Nokogiri::XML::Document]
# File lib/wayfarer/parsers/xml_parser.rb, line 15 def parse_xml(xml_str) Nokogiri::XML(xml_str) end