Package org.apache.xmlbeans.samples.any

Examples of org.apache.xmlbeans.samples.any.ListOfStrings$Factory


        // The cursor's no longer needed.
        arrayCursor.dispose();

        // Create the <stringlist> element's value and set it.
        ListOfStrings stringListValue = buildListOfStrings();
        if (stringListValue == null)
        {
            return null;
        }
        stringList.set(stringListValue);
View Full Code Here


     * @return A valid instance of ListOfStrings.
     */
    private ListOfStrings buildListOfStrings()
    {
        // Create an instance of the ListOfStrings complex type.
        ListOfStrings stringList = ListOfStrings.Factory.newInstance();
        stringList.setId("001");

        // Add two children for the instance's root.
        XmlString stringElement = stringList.addNewStringelement();
        stringElement.setStringValue("string1");
        stringElement = stringList.addNewStringelement();
        stringElement.setStringValue("string2");
       
        // Validate the new XML.
        if (!validateXml(stringList))
        {
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.samples.any.ListOfStrings$Factory

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.