[Tutor] Is there any XML lib like the default json lib in terms of usability?

Juan Christian juan0christian at gmail.com
Fri Sep 19 04:54:47 CEST 2014


Using the default json lib is easy and straightforward:

import json
info = json.loads('file.json')
# Use dict and list to navigate through 'info'


Sadly, I'm working in a script and the only format the server gives is XML,
I searched for a good alternative and didn't find anything as easy as the
default json lib.

Any tips?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140918/529d9731/attachment.html>


More information about the Tutor mailing list