@classmethod
    def parse(cls, xml_str, store_xml=False):

        dom = xml.dom.minidom.parseString(xml_str)

        # get the root
        root_node = XMLNode()
        if store_xml:
            root_node.xml = xml_str

        return cls.__parse_element(dom.firstChild, root_node)
Convert an XML string into a nice instance tree of XMLNodes.
dataset/ETHPy150Open onitu/onitu/drivers/flickr/onitu_flickr/flickrapi/xmlnode.py/XMLNode.parse