Refactor hash_maps to maps and make tinyxml2