That is not possible due to the type erasure of the compiler. If you have a concrete type with a default constructor on caller side, the following may work:
public static <T> ArrayList<T> GetListFromXml(String url,String element, Class<? extends T> type) {
T obj = type.newInstance();
...
}
If you need to pass parameters to the constructor, you have to get it from the class by getConstructor(parameter type 1, ...)
(you need to handle the Exceptions not shown here):
MyParamType1 param1 = ...;
MyParamType2 param2 = ...;
Constructor<T> cons = type.getConstructor(MyParamType1.class, MyParamType2.class);
T obj = const.newInstance(param1, param2);