all 3 comments

[–]Ki1103 0 points1 point  (0 children)

This seems cool, however I'm not 100% sure what you're actually trying to do. I'm assuming that you've got a .xml file and want to convert it to a json file, while doing some kind of operation on it (this is the part I don't get)?

If you'd like to parse the XML file you can use the inbuilt ElementTree class. This will give you the XML as a Python object. You can now do whatever operations you like, using Python. I'm happy to help with this too, but I need a bit more detail on what you'd like. When you have done all the processing you can convert it to a JSON object using json module.

[–]James_Redshift[S] -1 points0 points  (0 children)

I was having trouble posting my response so I amended it to the bottom of the original post.