outputProperties.setProperty(OutputKeys.OMIT_XML_DECLARATION, xmlDecl ? "no" : "yes"); SAXSerializer xmlout = new SAXSerializer(sout, outputProperties);
outputProperties.setProperty( OutputKeys.OMIT_XML_DECLARATION, xmlDecl ? "no" : "yes"); xmlout = SAXSerializerPool.getInstance().borrowSAXSerializer(); xmlout.setWriter(sout); xmlout.setOutputProperties(outputProperties);
	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.setPreserveSpace(false);//			format.setLineWidth(60);//		} else//			format.setPreserveSpace(true);//		XMLSerializer xmlout = new XMLSerializer(sout, format);		outputProperties.setProperty(OutputKeys.OMIT_XML_DECLARATION, xmlDecl ? "no" : "yes");		SAXSerializer xmlout = new SAXSerializer(sout, outputProperties);		setContentHandler(xmlout);		setLexicalHandler(xmlout);		return sout;	}