xml-path/src/main/java/io/restassured/path/xml/XmlPath.java
public <T> List<T> getList(String path, Class<T> genericType) {
        return getAsList(path, genericType);
    }
public <T> List<T> getList(String path, Class<T> genericType) {
        return getAsList(path, genericType);
    }
Get the result of an XML path expression as a list. For syntax details please refer to
<a href="http://www.groovy-lang.org/processing-xml.html#_manipulating_xml">this</a> url.

@param path        The XML path.
@param genericType The generic list type
@param <T>         The type
@return The object matching the XML path. A {@link java.lang.ClassCastException} will be thrown if the object
cannot be casted to the expected type.