public DownloadXML(String weburl) {
		HttpClient client = HttpClients.createDefault();
		HttpGet get = new HttpGet(weburl);
		get.setHeader("Content-Type", "application/xml");
		HttpResponse response;
		try {
			response = client.execute(get);
			HttpEntity entity = response.getEntity();
			if (entity != null) {
				InputStream is = entity.getContent();
				BufferedReader in = new BufferedReader(
						new InputStreamReader(is));
				//获取文本
				buffer = new StringBuffer();
				String line = "";
				while ((line = in.readLine()) != null)
					buffer.append(line + "\n");
//				System.out.println(buffer);
				writeXMLFile();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}