#NEWLINE# @ classmethod #NEWLINE# def from_xml( cls , element ) : #NEWLINE# #INDENT# name = None #NEWLINE# version = None #NEWLINE# os_name = None #NEWLINE# for child in element : #NEWLINE# #INDENT# if ( child . tag == NAME_TAG ) : #NEWLINE# #INDENT# name = child . text #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( child . tag == VERSION_TAG ) : #NEWLINE# #INDENT# version = child . text #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( element . tag == OS_TAG ) : #NEWLINE# #INDENT# os_name = child . text #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return cls ( name , version , os_name )