implemented xmltodict api