@extends(pm.nodetypes.SequenceManager)
    def from_xml(self, path):
        """Parses XML file and returns a Sequence instance which reflects the
        whole time line hierarchy.

        :param path: The path of the XML file
        :return: :class:`.Sequence`
        """
        if not isinstance(path, str):
            raise TypeError(
                'path argument in %s.from_xml should be a string, not %s' %
                (self.__class__.__name__, path.__class__.__name__)
            )

        from xml.etree import ElementTree

        try:
            tree = ElementTree.parse(path)
        except __HOLE__:
            raise IOError('Please supply a valid path to an XML file!')

        root = tree.getroot()
        seq = Sequence()
        xml_seq = root.getchildren()[0]

        seq.from_xml(xml_seq)

        self.from_seq(seq)
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/extension.py/SequenceManagerExtension.from_xml