[Python] Dubbi sull'accesso ad un file xml

Marco Beri marcoberi a gmail.com
Mer 18 Apr 2012 16:24:11 CEST


2012/4/18 Karim Gorjux <lemieliste a gmail.com>

> Ciao a tutti!
> Ho un problema con il parsing di file xml. Pių precisamente non riesco a
> posizionarmi nel nodo che vorrei.
> > from xml.etree.ElementTree import ElementTree
> > tree = ElementTree()
> > tree.parse('C:\file.xml')
>

Hai provato a vedere lxml?
http://lxml.de/

Supporta pienamente xpath
http://lxml.de/xpathxslt.html

Ciao.
Marco.
-------------- parte successiva --------------
Un allegato HTML č stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20120418/f955e31b/attachment.html>


Maggiori informazioni sulla lista Python