@SuppressWarnings("unchecked")  
    public static Map<String, String> parseXml(HttpServletRequest request) throws Exception {  
        // 洢HashMap  
        Map<String, String> map = new HashMap<String, String>();  
  
        // requestȡ  
        InputStream inputStream = request.getInputStream();  
        // ȡ  
        SAXReader reader = new SAXReader();  
        Document document = reader.read(inputStream);  
        // õxmlԪ  
        Element root = document.getRootElement();  
        // õԪصӽڵ  
        List<Element> elementList = root.elements();  
  
        // ӽڵ  
        for (Element e : elementList)  
            map.put(e.getName(), e.getText());  
  
        // ͷԴ  
        inputStream.close();  
        inputStream = null;  
  
        return map;  
    }