Re: remove element with ElementTree

2010-03-09 Thread Stefan Behnel
tdan, 09.03.2010 04:35: 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. I am iterating over a

Re: remove element with ElementTree

2010-03-09 Thread Stefan Behnel
Justin Ezequiel, 09.03.2010 10:34: On Mar 9, 11:35 am, tdan 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

Re: remove element with ElementTree

2010-03-09 Thread Justin Ezequiel
On Mar 9, 11:35 am, tdan 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. > s

remove element with ElementTree

2010-03-08 Thread tdan
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. I am iterating over a table and getting all tag