remove element with ElementTree
Justin Ezequiel
justin.mailinglists at gmail.com
Tue Mar 9 04:34:52 EST 2010
On Mar 9, 11:35 am, tdan <df.tr... at gmail.com> wrote:
> I have been using ElementTree to write an app, and would like to
> simply remove an element.
> But in ElementTree, you must know both the parent and the child
> element to do this.
> There is no getparent() function, so I am stuck if I only have an
> element.
>
see http://effbot.org/zone/element.htm#accessing-parents
More information about the Python-list
mailing list