@SuppressWarnings("rawtypes")
	public static Map getWeather(String cityName) throws UnsupportedEncodingException {
		URLConnection cn = null;
		Map<String, String> map = null ; 
	    URL url = null ;
			try {
				url = new URL("http://php.weather.sina.com.cn/xml.php?city="+cityName+"&password=DJOYnieT8234jlsK&day=0");
				System.out.println("url="+url);
				cn = url.openConnection();
				cn.connect();
				InputStream stream = cn.getInputStream();
				DocumentBuilder docBuild = DocumentBuilderFactory.newInstance().newDocumentBuilder();
				Document doc = docBuild.parse(stream);
				NodeList nodelist = (NodeList) doc.getElementsByTagName("Weather");
			    map = new HashMap<String, String>();
				for (int i = 0; i < nodelist.getLength(); i++) 
				{
					map.put("city", doc.getElementsByTagName("city").item(i).getFirstChild().getNodeValue());   //
					map.put("date", doc.getElementsByTagName("savedate_weather").item(i).getFirstChild().getNodeValue());  //
					map.put("status", doc.getElementsByTagName("status1").item(i).getFirstChild().getNodeValue()   //
							+ ","+ doc.getElementsByTagName("status2").item(i).getFirstChild().getNodeValue());
					map.put("temperatureLow", doc.getElementsByTagName("temperature1").item(i).getFirstChild().getNodeValue());//¶
					map.put("temperatureHigh", doc.getElementsByTagName("temperature2").item(i).getFirstChild().getNodeValue()); //¶
					map.put("sportAdvice", doc.getElementsByTagName("ssd_s").item(i).getFirstChild().getNodeValue());			//˶
					map.put("dataSource", "http://php.weather.sina.com.cn/xml.php");
				}
			} catch (MalformedURLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (ParserConfigurationException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (SAXException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}					
		return map;
	}