fix rexml parser, typecasting tweak