Package org.apache.xmlbeans.samples.any

Examples of org.apache.xmlbeans.samples.any.RootDocument


    {
        Any sample = new Any();
        boolean newDocIsValid = sample.buildDocFromScratch();
//        assert !newDocIsValid;

        RootDocument rootDoc = (RootDocument)sample.parseXml(args[0]);
       
        boolean domEditsAreValid = sample.editExistingDocWithDOM(rootDoc);
//        assert !domEditsAreValid;
       
        boolean selectPathEditsAreValid = sample.editExistingDocWithSelectPath(rootDoc);
View Full Code Here


    {
        Any thisSample = new Any();
        System.out.println("Running Any.buildDocFromScratch\n");
        thisSample.buildDocFromScratch();
       
        RootDocument rootDoc = (RootDocument)thisSample.parseXml(args[0]);

        System.out.println("Running Any.editExistingDocWithSelectChildren\n");
        thisSample.editExistingDocWithSelectChildren(rootDoc);

        System.out.println("Running Any.editExistingDocWithDOM\n");
View Full Code Here

     */
    public boolean buildDocFromScratch()
    {
        // Start by creating a <root> element that will contain
        // the children built by this method.
        RootDocument rootDoc = RootDocument.Factory.newInstance();
        RootDocument.Root root = rootDoc.addNewRoot();
       
        // Add the first element, <stringelement>.
        root.setStringelement("some text");

        // Create an XmlObject in which to build the second
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.samples.any.RootDocument

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.