lib/boxcars/x_node.rb in boxcars-0.4.3 vs lib/boxcars/x_node.rb in boxcars-0.4.4

- old
+ new

@@ -26,9 +26,10 @@ end end end def self.from_xml(xml) + xml = xml[xml.index("<")..-1] unless xml.start_with?("<") doc = Nokogiri::XML.parse(xml) if doc.errors.any? Boxcars.debug("XML: #{xml}", :yellow) # rubocop:disable Lint/Debugger debugger if ENV.fetch("DEBUG_XML", false)