Add xml as a generic argument