Re: [Tutor] removing nodes using ElementTree

2015-06-29 Thread Peter Otten
street.swee...@mailworks.org wrote: > Hello all, > > I'm trying to merge and filter some xml. This is working well, but I'm > getting one node that's not in my list to include. Python version is > 3.4.0. > > The goal is to merge multiple xml files and then write a new one based > on whether or

Re: [Tutor] removing nodes using ElementTree

2015-06-28 Thread Alan Gauld
On 27/06/15 01:03, street.swee...@mailworks.org wrote: I'm trying to merge and filter some xml. This is working well, but I'm getting one node that's not in my list to include. This may be similar to a recent post with similar issues. for rec in xmlet: if rec.find('part').find('pid').t