#NEWLINE# @ staticmethod #NEWLINE# def create_from_xml( resultFile , resultElem , columns = None , all_columns = False ) : #NEWLINE# #INDENT# '\n        This function extracts everything necessary for creating a RunSetResult object\n        from the "result" XML tag of a benchmark result file.\n        It returns a RunSetResult object, which is not yet fully initialized.\n        To finish initializing the object, call collect_data()\n        before using it for anything else\n        (this is to separate the possibly costly collect_data() call from object instantiation).\n        ' #NEWLINE# attributes = RunSetResult . _extract_attributes_from_result ( resultFile , resultElem ) #NEWLINE# if ( not columns ) : #NEWLINE# #INDENT# columns = RunSetResult . _extract_existing_columns_from_result ( resultFile , resultElem , all_columns ) #NEWLINE# #UNINDENT# summary = RunSetResult . _extract_summary_from_result ( resultElem , columns ) #NEWLINE# return RunSetResult ( _get_run_tags_from_xml ( resultElem ) , attributes , columns , summary )