赞
踩
- package cn.test;
-
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- import java.net.URI;
- import java.net.URISyntaxException;
- import java.util.List;
-
- import org.apache.http.HttpEntity;
- import org.apache.http.HttpResponse;
- import org.apache.http.HttpStatus;
- import org.apache.http.client.ClientProtocolException;
- import org.apache.http.client.HttpClient;
- import org.apache.http.client.methods.HttpGet;
- import org.apache.http.impl.client.DefaultHttpClient;
- import org.apache.log4j.Logger;
- import org.apache.log4j.PropertyConfigurator;
- import org.dom4j.Document;
- import org.dom4j.DocumentException;
- import org.dom4j.Element;
-
- import cn.utils.xmlUtils;
-
- public class WriteResponse2XML{
- public static void main(String[] args) throws
- URISyntaxException, ClientProtocolException, IOException, DocumentException{
- //Get请求的参数
- final String URL = "http://search.ifeng.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。