Aug. 9, 2022
8:51 a.m.
On 9 Aug 2022, at 8:40, Gilles wrote:
Thanks mucho.
The script fails on this particular line:
"""
File "remove.dups.py", line 54, in
print(f"type(entries.children = {','.join(str(type(c)) for c in entries.getchildren())}")
AttributeError: 'NoneType' object has no attribute 'getchildren'
"""
print(f"type(entries.children = {','.join(str(type(c)) for c in entries.getchildren())}")
Then add the condition `not None` in the comprehension. Though, to be honest I suspect writing to a Sqlite database and exporting unique values back to XML is probably going to be easier. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Sengelsweg 34 Düsseldorf D- 40489 Tel: +49-203-3925-0390 Mobile: +49-178-782-6226