def _parse_xml_doc(self, library):
        root = ET.parse(library).getroot()
        if ('type', DBJsonSetting.library) in root.items():
            return root.attrib['name'], self._parse_xml_lib(root)
        else:
            raise ValueError('XML file is not library: {0}'.format(
                root.attrib['name'])
            )
dataset/ETHPy150Open andriyko/sublime-robot-framework-assistant/dataparser/data_parser/data_parser.py/DataParser._parse_xml_doc/original