public String doc2String(Document document) {
		String s = "";
		try {
			// 浣跨敤杈撳嚭娴佹潵杩涜杞寲
			ByteArrayOutputStream out = new ByteArrayOutputStream();
			// 浣跨敤UTF-8缂栫爜
			OutputFormat format = new OutputFormat("   ", true, "UTF-8");
			XMLWriter writer = new XMLWriter(out, format);
			writer.write(document);
			s = out.toString("UTF-8");
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		return s;
	}