@classmethod
    def parse_xml(cls, source):
        if isinstance(source, basestring):
            source = ET.fromstring(source)

        el = cls(source.tag, **source.attrib)
        if source.text:
            el.text = source.text

        children = source.getchildren()
        for child in children:
            el.append(cls.parse_xml(child))

        return el

    #Properties
Parses a xml String into a MessageElement
dataset/ETHPy150Open flosch/simpleapi/example_project/client/python/sapi/message.py/MessageElement.parse_xml