XML Binding
Burak Arslan
burak.arslan at arskom.com.tr
Thu Sep 3 15:54:54 EDT 2015
Hello,
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:
http://stackoverflow.com/questions/19545067/python-joining-and-writing-xml-etrees-trees-stored-in-a-list
> 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.
Best,
Burak
More information about the Python-list
mailing list