What's the best way to handle XML parsing with Python etree? or Python etree: How do you efficiently

16 Replies, 1193 Views

"Python etree vs. other XML libraries—what’s your go-to and why?"

Alright, so I've been wrestling with XML in Python for a while now, and I keep coming back to Python etree. Like, it's just *there*, ya know? Built-in, no extra installs, and gets the job done.

But then there’s lxml—super fast, more features, but sometimes feels like overkill? And don’t even get me started on minidom... *shudders*.

So what’s your pick? Do you stick with Python etree for simplicity, or do you go all-in with lxml for the speed? Or am I missing some hidden gem?

(Also, why is XML still a thing in 2023? But that’s a rant for another day.)

Messages In This Thread
What's the best way to handle XML parsing with Python etree? or Python etree: How do you efficiently - by - 23-07-2024, 08:53 AM



Users browsing this thread: 1 Guest(s)