public static MethodInvoker XMLToMethod(String _xmlString) {
		SAXBuilder sxb = new SAXBuilder();
		try {
			
			InputStream stream = new ByteArrayInputStream(_xmlString.getBytes("UTF-8"));

			Document doc = sxb.build(stream);
			Element racine = doc.getRootElement();
			
			String nomMethode = racine.getAttributeValue("method");
			
			ArrayList<Class<?>> paramsType = new ArrayList<Class<?>>();
			ArrayList<Object> paramsValue = new ArrayList<Object>();
			
			for(Element param : racine.getChildren())
			{
				Class<?> c = Class.forName(param.getName());
				paramsType.add(c);

				XStream builder = new XStream(new StaxDriver());
				builder.alias(param.getName(), c);
				Object obj = builder.fromXML("<?xml version=\"1.0\"?><"+param.getName()+">"+param.getText()+"</"+param.getName()+">");
				
				paramsValue.add(obj);
				
				
			}
			
			Class<?>[] classes = new Class[paramsType.size()];
			for (int i=0; i<paramsType.size(); i++)
			{
				classes[i] = paramsType.get(i);
			}
			
			Method method = API.class.getMethod(nomMethode, classes);
			MethodInvoker methodParam = new MethodInvoker(method, paramsValue.toArray());
			
			return methodParam;
		} catch (JDOMException | IOException | ClassNotFoundException | NoSuchMethodException | SecurityException e) {
			e.printStackTrace();
		}
		return null;
	}