def parse(self, ioc_obj):
if ioc_obj is None:<EOL><INDENT>return<EOL><DEDENT>iocid = ioc_obj.iocid<EOL>try:<EOL><INDENT>sd = ioc_obj.metadata.xpath('<STR_LIT>')[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>sd = '<STR_LIT>'<EOL><DEDENT>if iocid in self.iocs:<EOL><INDENT>msg = '<STR_LIT>'.format(iocid,<EOL>self.ioc_name[iocid],<EOL>sd)<EOL>log.warning(msg)<EOL><DEDENT>self.iocs[iocid] = ioc_obj<EOL>self.ioc_name[iocid] = sd<EOL>if self.parser_callback:<EOL><INDENT>self.parser_callback(ioc_obj)<EOL><DEDENT>return True<EOL>
parses an ioc to populate self.iocs and self.ioc_name

:param ioc_obj:
:return: