format.setPreserveSpace(false);
	protected StringWriter setPrettyPrinter(boolean xmlDecl) {		StringWriter sout = new StringWriter();		OutputFormat format = new OutputFormat("xml", encoding, false);		format.setOmitXMLDeclaration(!xmlDecl);		format.setOmitComments(false);		if (indent) {			format.setIndenting(true);			format.setLineWidth(60);		} else			format.setPreserveSpace(true);		XMLSerializer xmlout = new XMLSerializer(sout, format);		setContentHandler(xmlout);		setLexicalHandler(xmlout);		return sout;	}