'Return a dictionnary of the element tree.'

def to_dic(self):

    pwdFounds = []
    root = etree.fromstring(etree.tostring(self.obj_root))
    for r in root[1][0]:
        for entries in r.findall('Entry'):
            dic = {}
            entry = list(entries.iter('String'))
            for en in entry:
                try:
                    if (en[0].text == 'UserName'):
                        dic['Login'] = en[1].text
                    else:
                        dic[en[0].text] = en[1].text.replace('\n', '.')
                except Exception as e:
                    pass
            pwdFounds.append(dic)
    return pwdFounds
