replace the XML lib from Nokogiri to REXML