Package org.dom4j.jaxb

Examples of org.dom4j.jaxb.JAXBWriter


            orders.getPurchaseOrder().add(order2);

            File outputFile = new File(outputDir, "jaxbWrite.xml");

            JAXBWriter jaxbWriter = new JAXBWriter("org.dom4j.test.primer",
                    OutputFormat.createPrettyPrint());
            jaxbWriter.setOutput(outputFile);

            jaxbWriter.startDocument();
            jaxbWriter.write(orders);
            jaxbWriter.endDocument();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

TOP

Related Classes of org.dom4j.jaxb.JAXBWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.