[Python] python ed xml

danielita danielita74 a gmail.com
Mar 17 Feb 2009 16:39:54 CET


Grazie per le informazioni, la guida a elementtree è molto chiara!
Ciao!

2009/2/17 Lawrence Oluyede <l.oluyede a gmail.com>

> 2009/2/17 Paolo Ferretti <paolo a paoloferretti.it>:
> > On Tue, Feb 17, 2009 at 09:16, Lawrence Oluyede <l.oluyede a gmail.com>
> wrote:
> >>
> >> Attenzione che BeautifulSoup e` lenta come la morte. Io userei
> >> ElementTree per parsare l'XML,
> >
> > Sì, effettivamente non è velocissima! :-) Sapresti dirmi quanto
> ElementTree
> > sia più veloce?
>
> Beh cElementTree e` sicuramente piu` veloce, ma non so di quanto. Ad
> ogni modo BeautifulSoup non e` nata per parsare
> XML genericamente ma per estrarre informazioni da pezzi di HTML piu` o
> meno standard.
>
> Qui ci sono dei benchmark che mettono a confronto lxml e ElementTree:
> <http://codespeak.net/lxml/performance.html>
> (notare gli ordini di grandezza che distanziano lxml/cElementTree da
> ElementTree...)
>
> --
> Lawrence, http://oluyede.org - http://twitter.com/lawrenceoluyede
> "It is difficult to get a man to understand
> something when his salary depends on not
> understanding it" - Upton Sinclair
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: http://lists.python.it/pipermail/python/attachments/20090217/9d70c056/attachment.htm 


Maggiori informazioni sulla lista Python