def wrap(s1,s2): 
    """
    Return a function that wraps a supplied string in a supplied prefix and suffix.
    This is used for constructing XML elements from a list of values.
    """
    return (lambda t: s1+t+s2)