//get the test document
DocumentImpl doc = root.getDocumentWithLock(broker, XmldbURI.create(documentName), Lock.READ_LOCK);
Serializer serializer = broker.getSerializer();
serializer.reset();
SAXSerializer sax = null;
StringWriter writer = new StringWriter();
sax = (SAXSerializer) SerializerPool.getInstance().borrowObject(SAXSerializer.class);
Properties outputProperties = new Properties();
outputProperties.setProperty(OutputKeys.INDENT, "no");