def find_token(element, token):
    """ Find a token in the xml file.
    :param element: Search for tokens in this Elementtree element. 
    :param token: Token byte to search for
    :type element: Element
    :type token: int
    :return: Child element which matches the token byte.
    :rtype: Element"""
    children = element.findall('{http://merthsoft.com/Tokens}Token')
    if children:
        for child in children:
            byte = int(child.get('byte')[1:], base=16)
            if byte == token:
                return child
    return None
