protected void outputuser(List <User> res, HttpServletResponse response) throws IOException{
		Element root = new Element("users");
		Document document = new Document(root);
		root = document.getRootElement();
		for(int i = 0; i < res.size(); ++i){
			Element usr = new Element("user");
			Element id = new Element("uid");
			usr.addContent(id.setText(Integer.toString(res.get(i).uid)));
			Element signature = new Element("signature");
			usr.addContent(signature.setText(res.get(i).signature));
			Element sex = new Element("sex");
			usr.addContent(sex.setText(Integer.toString(res.get(i).sex)));
			Element motion = new Element("motion");
			usr.addContent(motion.setText(Integer.toString(res.get(i).motion)));
			Element motionlevel = new Element("motionlevel");
			usr.addContent(motionlevel.setText(Integer.toString(res.get(i).motionlevel)));
			root.addContent(usr);
			System.out.println(res.get(i).username + " " + res.get(i).password);
		}
		System.out.println("down");
		response.getWriter().print(res.size());
		XMLOutputter XMLOut = new XMLOutputter();
		XMLOut.output(document, response.getWriter());
	}