Liquid XML Data Binder 2021
Liquid XML Data Binder (C++, Java, VB6) / Examples / Sample : Simple Choice
In This Topic
    Sample : Simple Choice
    In This Topic
    This sample shows an element containing a choice of simple elements. One and only one chlid element may be provided.

    The element AccountAdminRequest conatins 3 child elements, CreateAccount, DeleteAccount and ChangeAccountPassword. Only one of these elements may be specified at a time, and one MUST be specified. All 3 of the child elements are represented in the generated code as classes (as opposed to primitive), despite being based on primitive types. This is because they all contain child attributes of there own. Elements with child elements or attributes must be represented as classes in the generated code.

    XSD Source Files
     Schema Diagrams

    Sample Name Description C++ C# Java VB.Net VB6
    Valid Choice The sample demonstrates the element with ChangeAccountPassword element defined. Example   Example   Example   Example   Example  
    Setting to many elements in a Choice The sample demonstrates what happens when more than one item in a choice is set. Example   Example   Example   Example   Example  

    Main Menu