Suggestions for Python XML library which can search and insert

lainedacier at gmail.com lainedacier at gmail.com
Tue Jul 26 05:30:28 EDT 2005


> Why do you care if they are nested for loops?
>
> What is the problem you are experiencing that is caused
> by for loops?
>

The nested loops which I speak of are highly dependent
on the structure of the document tree. The examples which
I've seen using DOM or ElementTree deal with shallow trees,
but in my case, I am dealing with deeper trees--which means
that the degree of nesting would also grow deeper if I were
to follow suit. Also, it makes for hard to manage code.

I'd say that lxml is exactly what I'm looking for, because
it supports XPath and Robert Kern's example is pretty reassuring.
Thanks Robert Kern!




More information about the Python-list mailing list