Il 18/04/2012 16:21, Karim Gorjux ha scritto:

Mi autorispondo.

Seguendo questo link[1] ho capito come si crea esattamente la path per posizionarmi sul nodo giusto

In particolare:

# Top-level elements
tree.findall(".")

# All 'neighbor' grand-children of 'country' children of the top-level
# elements
tree.findall("./country/neighbor")

Grazie!

[1] http://hg.python.org/cpython/rev/e38f4cf482c7

--
Karim Gorjux
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a