Topic: xml中的数据传输,请高手指教!!!!!!!

  Print this page

1.xml中的数据传输,请高手指教!!!!!!! Copy to clipboard
Posted by: db_study
Posted on: 2007-10-25 19:08

读取的xml文件如何通过网络传输

/***********************读取XML文件**********/
SAXReader saxReader = new SAXReader();
Document document = saxReader.read(new File(filename));

/****************************/
Socket socket = new Socket(ip,port);
WriterPrint writer = new WriterPrint (socket.getOutPutStream());
writer.write(document);

请问如何才能把读取的这个XML文件传输出去.

2.Re:xml中的数据传输,请高手指教!!!!!!! [Re: db_study] Copy to clipboard
Posted by: JiafanZhou
Posted on: 2007-10-27 20:46

I think you have already had the code for this job.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923