def match_tag(tag):
    """Decorator which marks the provided function as being applicable to the
    requested tag."""
    def process_fn(fn):
        fn.matches = lambda parent, xml_node: xml_node.tag == tag
        return fn
    return process_fn