def htmlParser(page):
 xmlfile = paths.ERRORS_XML
 handler = HTMLHandler(page)
 parseXmlFile(xmlfile, handler)
 if (handler.dbms and (handler.dbms not in kb.htmlFp)):
  kb.lastParserStatus = handler.dbms
  kb.htmlFp.append(handler.dbms)
 else:
  kb.lastParserStatus = None
 if re.search('SQL (warning|error|syntax)', page, re.I):
  handler._markAsErrorPage()
 return handler.dbms

def htmlParser ( page ) : xmlfile = paths . ERRORS_XML handler = HTMLHandler ( page ) parseXmlFile ( xmlfile , handler ) if ( handler . dbms and ( handler . dbms not in kb . htmlFp ) ) : kb . lastParserStatus = handler . dbms kb . htmlFp . append ( handler . dbms ) else : kb . lastParserStatus = None if re . search ( 'SQL (warning|error|syntax)' , page , re . I ) : handler . _markAsErrorPage ( ) return handler . dbms
this function calls a class that parses the input html page to fingerprint the back-end database management system .