Which Python XML library should I use?
Posted
by PulpFiction
on Stack Overflow
See other posts from Stack Overflow
or by PulpFiction
Published on 2010-05-25T20:52:46Z
Indexed on
2010/05/25
21:01 UTC
Read the original article
Hit count: 321
Hello.
I am going to handle XML files for a project. I had earlier decided to use lxml but after reading the requirements, I think ElemenTree would be better for my purpose.
The XML files that have to be processed are:
Small in size. Typically < 10 KB.
No namespaces.
Simple XML structure.
Given the small XML size, memory is not an issue. My only concern is fast parsing.
What should I go with? Mostly I have seen people recommend lxml, but given my parsing requirements, do I really stand to benefit from it or would ElementTree serve my purpose better?
© Stack Overflow or respective owner