Nokogiri XML document upload