Liquid XML Data Binder (C++, Java, VB6) / Examples / Cardinality / Example Usage / Fully populated / Java Sample : Cardinality
In This Topic
    Java Sample : Cardinality
    In This Topic
    Schema Summary
    This sample shows how to deal with mandatory, optional and collections of elements.

    Schema Details


    Sample Description
    The sample demonstrates how to read and write from optional, mandatory and collections of elements, when data is included in the XML document.

    Sample XML File

     Sample1.xml

    Sample Code
     Read Sample
     Write Sample

    XSD Source Files
     Cardinality.xsd
     Schema Diagrams

    Generated Files
     MyRootObject.java
     AComplexCollectionElement.java
     AComplexMandatoryElement.java
     AComplexOptionalElement.java

    Main Menu Samples List