[b]"What's the best way to parse XML in Python? Need recommendations!"[/b] or [b]"How do I efficiently parse XML f

16 Replies, 1303 Views

For speed and simplicity, I vote `lxml.objectify`.

Python parse XML into Python objects? Yes please.

Just do `obj = objectify.parse("file.xml")` and access tags like attributes (`obj.root.tag`).

Super clean for config files or simple XML. Not great for complex schemas though.

Messages In This Thread



Users browsing this thread: 1 Guest(s)