#NEWLINE# def parse_device( tree ) : #NEWLINE# #INDENT# device = Device ( ) #NEWLINE# device . name = tree . DeviceLog . Device . Name . text #NEWLINE# device . serial_number = tree . DeviceLog . Device . SerialNumber . text #NEWLINE# return device