日期:2014-05-17  浏览次数:20748 次

系统业务数据自动导入NC的用到的XMLUtil类在哪,希望有人帮忙解答
Java代码里的xmlutils类在哪?

下面是代码
String u*rl ="ht*tp://ip/service/XChangeServlet?account=01&receiver=01";
HttpURLConnection connection=PostFile.getConnection(url, false);

connection.setDoOutput(true);
connection.setRequestProperty("Contect-type", "text/xml");
connection.setRequestMethod("POST");
File file = new File("d:\\store\\应收单11.xml");
InputStream input = new FileInputStream(file);
org.w3c.dom.Document doc =XMLUtil.getDocumentBuilder().parse(input);
Writer writer = new OutputStreamWriter(connection.getOutputStream(), encoding);
XMLUtil.printDOMTree(writer, doc, 1,encoding);   // 按照XML文件格式输出 
writer.flush();
writer.close();

InputStream inputStream = connection.getInputStream();
String back = toString(inputStream);
System.out.println(back); 

------解决方案--------------------
XMLUtil的import语句是什么?

另外,这里有个,是不是你要找的:http://zhidao.baidu.com/link?url=JxSv36Z-Sa3m5G_hxDj-4WfgyJJ4sGyp2w94qpgDkWCgFLSEvGLNA_pc8QA8RngO6tpzovOV-Ew66sRwQf65IK