public Message(String message_xml) {
		message_id = 0;
		robot_name = "";
		command = Command.UNKNOWN;
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder builder;
		try {
			builder = factory.newDocumentBuilder();
	        InputSource is = new InputSource(new StringReader(message_xml));
	        Document message = builder.parse(is);
	        message_id = Long.parseLong(getTagValue(message, "id"));
	        robot_name = getTagValue(message, "robotname");
	        command = parseCommand(getTagValue(message, "command"));
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (ParserConfigurationException e) {
			e.printStackTrace();
		} catch (SAXException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}