elem.setAttribute("resource", "sqlMap.xml");
sqlMapElem.item(0).appendChild(elem);
Transformer trans = TransformerFactory.newInstance().newTransformer();
File tempFile = File.createTempFile("sqlMapConfig", ".xml");
tempFile.deleteOnExit();
trans.transform(new DOMSource(doc),new StreamResult(tempFile));
//从临时的配置文件中初始化sqlMapClient
input = new FileInputStream(tempFile);
SqlMapClientHolder.sqlMapClient = SqlMapClientBuilder