Examples of optionalUnboundedElement()


Examples of org.jitterbit.xml.xsd.SchemaDomBuilder.optionalUnboundedElement()

        Element complexType = locateAndStripComplexType(extension);
        SchemaDomBuilder builder = new SchemaDomBuilder(schema);
        builder.setSchemaPrefix("xs");
        Element sequence = builder.sequence();
        // TODO: Pass in the name. It is configurable in the XSD generator.
        Element item = builder.optionalUnboundedElement("item", "xs:string", true);
        sequence.appendChild(item);
        complexType.appendChild(sequence);
        Element attribute = builder.requiredFixedAttribute(JsonXmlConstants.JSON_ARRAY_ATTRIBUTE, "true", "xs:string");
        complexType.appendChild(attribute);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.