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

18 Replies, 878 Views

Honestly, minidom is outdated—avoid it. Stick with ElementTree or lxml.

For big files, chunk ’em or use SAX parsing. It’s old-school but efficient.

Namespaces suck, but `lxml` makes it *slightly* less awful.

Here’s a cheat sheet for lxml XPath: [link]. Helped me tons!

Messages In This Thread



Users browsing this thread: 1 Guest(s)