ifhas_valueisFalse:# Get IDs of strucutural elements without values (this means get IDs of XML tags. Struct elements only have values if they are XML attributes)
tmp_info[struct_attr_key]=[]
foridinstruct_ids:
tmp_info[struct_attr_key].append(id)
else:
structs_to_check.append({key:struct_attr_key})
print('Structs to check: {}'.format(structs_to_check))
struct_attr_values=list(tmp_info.values())
# print('Struct attr value list: {}'.format(struct_attr_values))
text_lookup_ids=list(set(struct_attr_values[0]))# every CPOS is associated with one text id. A set is build to only gather text_lookup informations for every unique text id
text_lookup={}# final dict containing all info of one text identified by its id