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();
解决方案 »
- Byte.parseByte的问题
- java怎么实现数据库备份!!急用。。急用。。
- spring配置的事物管理问题
- Struts标签<html:file>的问题
- 救命 cvsnt(login 出错:cvs [login aborted]: Error reading from server 192.168.1.100: -1: Unknown error)
- 更新数据库的问题
- 求助!!关于struts中,form中“数组”的校验问题
- jdbc:oracle:thin:@localhost thin是什么含义,还有其他的方式吗?
- 请问在java环境下,如何做到xsl对xml的自动转换?
- 关于Struts的一个小问题
- 高手快来捡分了!--小问题--只有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文件,应该用什么做阿?