Support for asText for all fragments and Doc