diff options
author | Bryan Newbold <bnewbold@archive.org> | 2018-08-24 12:28:51 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2018-08-24 12:28:51 -0700 |
commit | 3782311e29b7e477e1936c89f55ff6483fd02e65 (patch) | |
tree | b4484b9839f24d799d36881dfc85701ad888b94e /python/xml2json.py | |
parent | 2a998189ef49976bf01cc95acc1f18a73e1f0ff6 (diff) | |
download | sandcrawler-3782311e29b7e477e1936c89f55ff6483fd02e65.tar.gz sandcrawler-3782311e29b7e477e1936c89f55ff6483fd02e65.zip |
rename ./mapreduce to ./python
Diffstat (limited to 'python/xml2json.py')
-rw-r--r-- | python/xml2json.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/xml2json.py b/python/xml2json.py new file mode 100644 index 0000000..df5064f --- /dev/null +++ b/python/xml2json.py @@ -0,0 +1,7 @@ + +import json +import xmltodict + +with open('tests/files/23b29ea36382680716be08fc71aa81bd226e8a85.xml', 'rb') as f: + thing = xmltodict.parse(f, process_namespaces=False) + print(json.dumps(thing)) |