string xml="<?xml version="1.0" encoding="ISO-8859-1"?>"
xml+= "<AddressBean>"
..FileWriter fw=new FileWriter("yourxmlfile.xml");
fw.write(xml);
fw.flush();
xml+= "<AddressBean>"
..FileWriter fw=new FileWriter("yourxmlfile.xml");
fw.write(xml);
fw.flush();
解决方案 »
- Jtabbedpane指定选项卡中添加一个新的panel
- 急求啊···spring+jdbc···提示用户 'sa' 登录失败。
- 如何通过相应的数据生成一个收据,请给出源码!谢谢!
- 一个关于quartz框架和htmlparser的问题
- TOMCAT服务器不能启动??????
- 新手求教 J2EE 用的框架式spring MVC
- 在eclipse + lomboz + weblogic + oracle中实现CMP entityEJB时的问题
- 有谁能告诉我这两个的作用啊!!!!
- Struts2 的action中如何获得JSP里面session保存的值
- 用maven搭建个项目报错,找不出问题
- 高手快来捡分了!--小问题--只有localHome的EJB,客户端程序如何查找到LocalHome???
- 三层中数据返回的问题
读xml除了以上2中方法 还可以用SAX
楼上推荐的java&xml2nd 不错 网上有下载
run-test-client:
[echo] Running the com.sun.cb.TestPriceListRequest program:
[echo]
[java] <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/e
nvelope/"><soap-env:Header></soap-env:Header><soap-env:Body><PriceList:price-lis
t xmlns:PriceList="http://sonata.coffeebreak.com"><coffee><coffee-name>Arabica</
coffee-name><price>4.50</price><coffee-name>Espresso</coffee-name><price>5.00</p
rice><coffee-name>Dorada</coffee-name><price>6.00</price><coffee-name>House Blen
d</coffee-name><price>5.00</price></coffee></PriceList:price-list></soap-env:Bod
y></soap-env:Envelope>
现在我想是显示打印Soap里面Body的信息,然后生成一个.xml文件,应该用什么做阿?