I want to make generic function that return Object representation of XML document (using JAXB). I need to pass \"class\" object to JAXBContext constructor, but how I can get it
public class XYZ { ... private Class tClass; ... public readXmlToObject(String xmlFileName) { JAXBContext context = JAXBContext.newInstance(tClass); ... } ... }