#NEWLINE# def xpathtostring( context , nodes , with_tail = True , * args ) : #NEWLINE# #INDENT# return apply2elements ( context , element_func = ( lambda nodes : elements2text ( nodes , with_tail = with_tail ) ) , notelement_func = ( lambda nodes : [ remove_multiple_whitespaces ( str ( s ) ) for s in nodes ] ) )