public String toXML() {
		String xml = null;
		
		try{
			Document document = DocumentHelper.createDocument();
            Element responseElement = document.addElement("response");
            responseElement.addAttribute("status", status);
            
            if(status.equals("200")){
            	if(urgency != null && !urgency.isEmpty()) {
            		Element urgencyElement = responseElement.addElement("urgency");
            		urgencyElement.setText(urgency);
            	}
            }
            else if(message != null) {
            	Element messageElement = responseElement.addElement("message");
            	messageElement.setText(message);
            }
            
            xml = responseElement.asXML();
		} catch(Exception e){
			e.printStackTrace();
		}
		
		return xml;
	}