Here you can find the source of unmarshal(org.w3c.dom.Element elem, Class> c)
public static Object unmarshal(org.w3c.dom.Element elem, Class<?> c) throws JAXBException
//package com.java2s; //## The MIT License import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; public class Main { public static Object unmarshal(org.w3c.dom.Element elem, Class<?> c) throws JAXBException { Object result = null;//from ww w . j a v a2s . c om JAXBContext jc = JAXBContext.newInstance(c); Unmarshaller um = jc.createUnmarshaller(); result = um.unmarshal(elem); return result; } }