def from_xml(cls, element): children = element.getchildren() if children: ret = etree_to_dict(element) return ret return None
def from_xml(cls, element, serializers=None): children = element.getchildren() if children: return etree_to_dict(element) return None