[b]"What's the best way to parse and manipulate XML in Python?"[/b] or [b]"How do you handle XML data efficiently

18 Replies, 641 Views

For python xml, I’d say:
- Simple stuff: ElementTree
- Complex: lxml
- Huge files: SAX or chunking

Namespaces? `lxml`’s `xpath()` with wildcards saves headaches.

Also, `xmltodict` is great for quick hacks.

Messages In This Thread



Users browsing this thread: 1 Guest(s)