Jump to: navigation, search

EclipseLink/Examples/MOXy/Dynamic/JAXBContextFromXMLSchema

< EclipseLink‎ | Examples‎ | MOXy‎ | Dynamic
Revision as of 16:42, 17 June 2010 by Blaise.doughan.oracle.com (Talk | contribs) (New page: <source lang="java"> package example.dynamic; import java.io.FileInputStream; import javax.xml.bind.JAXBContext; import org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContextFactory; pu...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
package example.dynamic;
 
import java.io.FileInputStream;
import javax.xml.bind.JAXBContext;
import org.eclipse.persistence.jaxb.dynamic.DynamicJAXBContextFactory;
 
public class Demo {
 
    public static void main(String[] args) throws Exception {
        FileInputStream xsdInputStream = new FileInputStream("src/example/dynamic/customer.xsd");
        JAXBContext jaxbContext = DynamicJAXBContextFactory.createContextFromXSD(xsdInputStream, null, null, null);
    }
}