Switch to REXML to avoid Nokogiri dependency