serializer.setProperty(OutputKeys.INDENT, prettyPrint ? "yes" : "no"); return serializer.serialize((NodeSet) resultSet, start, howmany, queryTime);
serializer.setProperties(properties);  Item item; for (int i = --start; i < start + howmany; i++) { item = resultSet.itemAt(i); if (item == null) continue; if (item.getType() == Type.ELEMENT) { NodeValue node = (NodeValue) item; writer.write(serializer.serialize(node)); } else { writer.write("<exist:value type=\""); writer.write(Type.getTypeName(item.getType())); writer.write("\">"); writer.write(item.getStringValue()); writer.write("</exist:value>"); } } writer.write("\n</exist:result>"); return writer.toString();
	protected String printAll(		DBBroker broker,		NodeList resultSet,		int howmany,		int start,		boolean prettyPrint,		long queryTime)		throws Exception {		if (resultSet.getLength() == 0)			return "<?xml version=\"1.0\"?>\n"				+ "<exist:result xmlns:exist=\"http://exist.sourceforge.net/NS/exist\" "				+ "hitCount=\"0\"/>";		Node n;		Node nn;		Element temp;		DocumentImpl owner;		if (howmany > resultSet.getLength() || howmany == 0)			howmany = resultSet.getLength();		if (start < 1 || start > resultSet.getLength())			throw new EXistException("start parameter out of range");		Serializer serializer = broker.getSerializer();		serializer.reset();		serializer.setProperty(OutputKeys.INDENT, prettyPrint ? "yes" : "no");		return serializer.serialize((NodeSet) resultSet, start, howmany, queryTime);	}