public static void write(String fileName) {
		DocumentBuilder builder = null;
		try {
			builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
			org.w3c.dom.Document document = builder.newDocument();
			org.w3c.dom.Element root = document.createElement("华农");
			org.w3c.dom.Element wang = document.createElement("王老师");
			wang.setAttribute("name", "王");
			org.w3c.dom.Element li = document.createElement("李老师");
			li.setAttribute("name", "李");
			wang.appendChild(document.createTextNode("我是王老师"));
			li.appendChild(document.createTextNode("我是李老师"));
			root.appendChild(wang);
			root.appendChild(li);
			document.appendChild(root);
			Transformer transformer = TransformerFactory.newInstance()
					.newTransformer();
			transformer.setOutputProperty(
					javax.xml.transform.OutputKeys.ENCODING, "utf-8");
			transformer.setOutputProperty(
					javax.xml.transform.OutputKeys.INDENT, "yes");
			transformer.transform(new DOMSource(document), new StreamResult(
					fileName));
		} catch (ParserConfigurationException e) {
			e.printStackTrace();
		} catch (TransformerConfigurationException e) {
			e.printStackTrace();
		} catch (TransformerFactoryConfigurationError e) {
			e.printStackTrace();
		} catch (TransformerException e) {
			e.printStackTrace();
		}
	}