Java examples for XML:JAXB
Create new Context for JAXB
//package com.java2s; import javax.xml.bind.JAXBContext; public class Main { public static void main(String[] argv) throws Exception { Class classJAXB = String.class; System.out.println(newContext(classJAXB)); }//ww w .ja v a 2s .co m private static JAXBContext newContext(Class<?> classJAXB) throws Exception { return JAXBContext.newInstance(classJAXB); } }