Exemple #1
0
 def from_string(cls, string):
     return etree_to_dict(etree.fromstring(string))
Exemple #2
0
    def from_xml(cls, element):
        children = element.getchildren()
        if children:
            return etree_to_dict(element)

        return None