def parseFile(self, file_or_object):
    'parse a file'
    root = etree.parse(file_or_object)
    element_name = ('{%s}messageSchema' % SBE_NS)
    messageSchema_element = root.getroot()
    if (messageSchema_element.tag != element_name):
        raise ValueError(f'root element is not sbe:messageSchema, found {{repr(messageSchema_element)}} instead')
    return self.processSchema(messageSchema_element)
parse a file
def parseFile(self, file_or_object):
    
    root = etree.parse(file_or_object)
    element_name = ('{%s}messageSchema' % SBE_NS)
    messageSchema_element = root.getroot()
    if (messageSchema_element.tag != element_name):
        raise ValueError(f'root element is not sbe:messageSchema, found {{repr(messageSchema_element)}} instead')
    return self.processSchema(messageSchema_element)