Liquid XML Data Binder (C++, Java, VB6) / Examples / Cardinality / Example Usage / Fully populated / C++ Sample : Cardinality
In This Topic
    C++ 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.cpp
     MyRootObject.h
     AComplexCollectionElement.cpp
     AComplexCollectionElement.h
     AComplexCollectionElementCol.cpp
     AComplexCollectionElementCol.h
     AComplexMandatoryElement.cpp
     AComplexMandatoryElement.h
     AComplexOptionalElement.cpp
     AComplexOptionalElement.h

    Main Menu Samples List