就是在 用JAVA获取XML信息 第二步(SAX) 上面增加一点内容。用Socket发送和接收。
客户端口:XMLC.java
/*
* Created on 2004-11-15
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
import java.net.*;
import java.io.*;
/**
* @author Shaird
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class XMLClient {
static Socket sock;
public static void main(String[] args)throws Exception{
sock = new Socket(InetAddress.getLocalHost(),8210);
PrintWriter write = new PrintWriter(new