switched formatting from json to xml