Check and remove duplicated children tags in XML
问题 I'm parsing an XML-like file via Element Tree in python and and writing the content to a pandas dataframe. I'm currently facing the following problem: The existence of children tags will be variant for different tags. This wouldn't be a problem with the solution mentioned here. However, the complicated part is that some tags have duplicated children tags while others don't. For example first product tag has two (different) article numbers and two equal product_types (duplicate) while the