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

herofour444 2013-04-25 04:38:19
java里面的是xmlutils
只有 getDocumentBuilder 方法
没有printDOMTree

下面是代码
String url = "http://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);
...全文
311 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
九成理科状元 2014-01-14
  • 打赏
  • 举报
回复
nc.vo.jcom.xml.XMLUtil
詩晓凝 2013-12-04
  • 打赏
  • 举报
回复
XMLUtil类问题解决了没?
lvzg_005 2013-04-26
  • 打赏
  • 举报
回复
就想这个博客中提供的XMLUtil类一样,目的是让业务程序使用起来更加方便 http://blog.csdn.net/tiandiqing/article/details/4392824
lvzg_005 2013-04-26
  • 打赏
  • 举报
回复
引用 4 楼 herofour444 的回复:
没有。。。找不到。网上也找不到
怀疑是这个项目自己提供的帮助类,在同一个项目中搜索 也找不到?
herofour444 2013-04-25
  • 打赏
  • 举报
回复
没有。。。找不到。网上也找不到
lvzg_005 2013-04-25
  • 打赏
  • 举报
回复
使用这个类的文件 没有import这个类吗
herofour444 2013-04-25
  • 打赏
  • 举报
回复
就是想问这个XMLUtil类在哪啊
十橙心橙意 2013-04-25
  • 打赏
  • 举报
回复
你想表达什么问题?

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧