src/main/java/de/alpharogroup/xml/json/JsonToXmlExtensions.java
public static <T> String toXml(final String jsonString, final Class<T> clazz)
		throws JsonParseException, JsonMappingException, IOException
	{
		final T object = JsonToObjectExtensions.toObject(jsonString, clazz);
		final String xmlString = ObjectToXmlExtensions.toXmlWithXStream(object);
		return xmlString;
	}
public static <T> String toXml(final String jsonString, final Class<T> clazz)
		throws JsonParseException, JsonMappingException, IOException
	{
		final T object = JsonToObjectExtensions.toObject(jsonString, clazz);
		final String xmlString = ObjectToXmlExtensions.toXmlWithXStream(object);
		return xmlString;
	}
Transform the given json as {@link String} object to an xml as {@link String} object.

@param <T>
the generic type
@param jsonString
the json as {@link String} object
@param clazz
the clazz of the generic type
@return the transformed xml as {@link String} object
@throws JsonParseException
If an error occurs when parsing the string into Object
@throws JsonMappingException
the If an error occurs when mapping the string into Object
@throws IOException
Signals that an I/O exception has occurred.