Questions tagged [xmltodict]

Python module that makes working with XML feel like you are working with JSON.

xmltodict is a Python module that makes working with XML feel like you are working with JSON

Check it on Pypi here.

120 questions
0
votes
2 answers

Converting multiple xml files/links to JSON using Python?

I know how to convert a single xml file or link to json in python using xmltodict. I was however wondering if there was any efficient way to convert multiple xml files(in order of hundreds or even thousand) to json in Python? Or, instead of Python,…
pg100
  • 5
  • 4
0
votes
1 answer

File not converting to JSON properly from xml

I am using Python to convert data from a xml file to json and putting it in a file. I am using xmltodict to convert to dictionary using 'parse' and then converting into json using 'dumps'. Here is the code below: - import xmltodict import json with…
pg100
  • 5
  • 4
0
votes
1 answer

import xmltodict module into visual studio code

I am having a little tough time importing the xmltodict module into my visual studio code. I setup the module in my windows using pip. it should be working on my visual studio as per the guidelines and relevant posts I found here. but for some…
jrl
  • 27
  • 1
  • 5
0
votes
0 answers

xmltodict is throwing ExpatError: no element found

I wanted programmatically store an XML file into a database, then I'll tranform, analyse and visualize data. Since I'm more proficient with python than any other language, I wanted to put the XML into MongoDB. So I'm trying to first convert XML to…
Husun
  • 29
  • 1
  • 7
0
votes
2 answers

Using xmltodict to access a line inside a tag in Python

I have an xml file that looks like: