DocumentOutputter outputter = new DOMDocumentOutputter(
dtd.createDocumentWriter(writer), getCharacterEncoder());
try {
outputter.output(prevOutputBuffer.getRoot());
content = writer.toString();
} catch (IOException e) {
if (logger.isDebugEnabled()) {
logger.debug("Could not add content of pre tag to output" +
" because of an unexpected Exception: ", e);