convert the result of a filter into a string
see also : xmlTreesToText for filter version, xread for the inverse operation