def convert_to_11(self):
if len(self) < <NUM_LIT:1>:<EOL><INDENT>log.error('<STR_LIT>')<EOL>return False<EOL><DEDENT>log.info('<STR_LIT>')<EOL>errors = []<EOL>for iocid in self.iocs:<EOL><INDENT>ioc_xml = self.iocs[iocid]<EOL>root = ioc_xml.getroot()<EOL>if root.tag != '<STR_LIT>':<EOL><INDENT>log.error('<STR_LIT>' % str(iocid))<EOL>errors.append(iocid)<EOL>continue<EOL><DEDENT>name_10 = root.findtext('<STR_LIT>')<EOL>keywords_10 = root.findtext('<STR_LIT>')<EOL>description_10 = root.findtext('<STR_LIT>')<EOL>author_10 = root.findtext('<STR_LIT>')<EOL>created_date_10 = root.findtext('<STR_LIT>')<EOL>last_modified_date_10 = root.get('<STR_LIT>', None)<EOL>if last_modified_date_10:<EOL><INDENT>last_modified_date_10 = last_modified_date_10.rstrip('<STR_LIT>')<EOL><DEDENT>created_date_10 = created_date_10.rstrip('<STR_LIT>')<EOL>links_10 = []<EOL>for link in root.xpath('<STR_LIT>'):<EOL><INDENT>link_rel = link.get('<STR_LIT>', None)<EOL>link_text = link.text<EOL>links_10.append((link_rel, link_text, None))<EOL><DEDENT>try:<EOL><INDENT>ioc_logic = root.xpath('<STR_LIT>')[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>log.exception(<EOL>'<STR_LIT>' % str(<EOL>iocid))<EOL>errors.append(iocid)<EOL>continue<EOL><DEDENT>ioc_obj = ioc_api.IOC(name=name_10, description=description_10, author=author_10, links=links_10,<EOL>keywords=keywords_10, iocid=iocid)<EOL>ioc_obj.set_lastmodified_date(last_modified_date_10)<EOL>ioc_obj.set_created_date(created_date_10)<EOL>comment_dict = {}<EOL>tlo_10 = ioc_logic.getchildren()[<NUM_LIT:0>]<EOL>try:<EOL><INDENT>self.convert_branch(tlo_10, ioc_obj.top_level_indicator, comment_dict)<EOL><DEDENT>except UpgradeError:<EOL><INDENT>log.exception('<STR_LIT>'.format(iocid))<EOL>errors.append(iocid)<EOL>continue<EOL><DEDENT>for node_id in comment_dict:<EOL><INDENT>ioc_obj.add_parameter(node_id, comment_dict[node_id])<EOL><DEDENT>self.iocs_11[iocid] = ioc_obj<EOL><DEDENT>return errors<EOL>
converts the iocs in self.iocs from openioc 1.0 to openioc 1.1 format.
the converted iocs are stored in the dictionary self.iocs_11