I am trying to convert an XML file to MarkDown but I can't find an example of converting a python dict. Here is my code:
import pypandoc
import xmltodict 
import json 
datadict = open("/home/.../FIX44.xml") 
dic = xmltodict.parse(datadict.read()) 
jsondump = json.dumps(dic) 
#print jsondump 
output = pypandoc.convert(jsondump, 'md', format='json', outputfile = 'test.md') 
assert output == ""
When I try to run this I get:
RuntimeError: Pandoc died with exitcode "1" during conversion