def parse_types_enum(self, parent: TypeCollection, element):
    'parse types/enum'
    attributes = self.parse_common_attributes(element, attributes=ENUM_ATTRIBUTES_LIST)
    sbe_enum = createEnum(**attributes)
    parent.addType(sbe_enum)
    for child_element in element.findall('validValue'):
        valid_value = self.parse_enum_valid_value(sbe_enum=sbe_enum, element=child_element)
        sbe_enum.addValidValue(valid_value)
parse types/enum
def parse_types_enum(self, parent: TypeCollection, element):
    
    attributes = self.parse_common_attributes(element, attributes=ENUM_ATTRIBUTES_LIST)
    sbe_enum = createEnum(**attributes)
    parent.addType(sbe_enum)
    for child_element in element.findall('validValue'):
        valid_value = self.parse_enum_valid_value(sbe_enum=sbe_enum, element=child_element)
        sbe_enum.addValidValue(valid_value)