Use Nokogiri::HTML instead of XML.