script to convert json output to xml