added raise_error for bad URL and XML with strict Nokogiri