Improve XML export
This commit is contained in:
@@ -1598,7 +1598,7 @@ class Export(object):
|
||||
outfile.write(json_data)
|
||||
|
||||
elif self.file_format == 'xml':
|
||||
xml_data = helpers.dict2xml(result, root_node=self.media_type)
|
||||
xml_data = helpers.dict2xml({self.media_type: result}, root_node='export')
|
||||
with open(filepath, 'w', encoding='utf-8') as outfile:
|
||||
outfile.write(xml_data)
|
||||
|
||||
|
Reference in New Issue
Block a user