src/main/java/de/alpharogroup/xml/ObjectToXmlExtensions.java
public static <T> String toXmlWithXStream(final XStream xstream, final T objectToXML)
	{
		return toXmlWithXStream(xstream, objectToXML, null);
	}
public static <T> String toXmlWithXStream(final XStream xstream, final T objectToXML)
	{
		return toXmlWithXStream(xstream, objectToXML, null);
	}
Creates from the given Object an xml string.

@param <T>
the generic type of the object that will be transformed to xml
@param xstream
the xstream object.
@param objectToXML
the object to xml
@return the xml string