From e8eb959fbdd5d13cd53421ddf2487811d049c4e8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 4 Apr 2018 11:47:41 -0700 Subject: more WIP on extractor --- extraction/xml2json.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 extraction/xml2json.py (limited to 'extraction/xml2json.py') diff --git a/extraction/xml2json.py b/extraction/xml2json.py new file mode 100644 index 0000000..f956014 --- /dev/null +++ b/extraction/xml2json.py @@ -0,0 +1,8 @@ + +import json +import sys +import xmltodict + +with open('tests/files/23b29ea36382680716be08fc71aa81bd226e8a85.xml', 'rb') as f: + thing = xmltodict.parse(f, process_namespaces=False) + print(json.dumps(thing)) -- cgit v1.2.3