Package org.apache.xmlbeans.samples.validation.todolist.TodolistDocument

Examples of org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist


        System.out.println("Validating on-the-fly: \n");
        m_validationOptions = new XmlOptions();
        m_validationOptions.setValidateOnSet();
       
        TodolistDocument todoList = (TodolistDocument)parseXml(xmlPath, m_validationOptions);
        Todolist list = todoList.getTodolist();
        ItemType firstItem = list.getItemArray(0);

        // Schema defines the <id> element as allowing values up to 100. So
        // this line throws an exception because it invalidates the XML the
        // code is updating.
        firstItem.setId(8587);
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist

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.