XML Binding

Burak Arslan burak.arslan at arskom.com.tr
Thu Sep 3 21:54:54 CEST 2015


On 09/03/15 19:54, Palpandi wrote:
> Hi All,
> Is there any module available in python standard library for XML binding? If not, any other suggestions.

lxml is the right xml library to use. You can use lxml's objectify or Spyne.

Here are some examples:


> Which is good for parsing large file?
> 1. XML binding
> 2. Creating our own classes

If you're dealing with huge files, I suggest using just lxml and work
with raw data. Deserializing xml objects to python classes sure is nicer
but has performance overhead that gets more and more visible as the
amount of data you deal with grows.


More information about the Python-list mailing list