Re: [J2SE] 利用http協定傳送XML內容而不另存成檔案
※ 引述《neverfly (neverfly)》之銘言:
: DOMSource source = new DOMSource(doc);
: StreamResult result = new StreamResult(new File("sample.xml"));
: transformer.transform(source,result);
http://java.sun.com/j2se/1.4.2/docs/api/
javax/xml/transform/stream/StreamResult.html#StreamResult(java.io.Writer)
http://java.sun.com/j2se/1.4.2/docs/api/java/io/StringWriter.html
:D
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.168.163
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):