xml-path/src/main/java/io/restassured/path/xml/XmlPath.java
public <T> T getObject(String path, Class<T> objectType) {
        Object object = getFromPath(path, false);
        return getObjectAsType(object, objectType);
    }
public <T> T getObject(String path, Class<T> objectType) {
        Object object = getFromPath(path, false);
        return getObjectAsType(object, objectType);
    }
Get an XML document as a Java Object.

@param objectType The type of the java object.
@param <T>        The type of the java object
@return A Java object representation of the XML document