C#

Based on the XML Schema.

The Microsoft XML Schema Definition (Xsd.exe) tool generates XML schema or common language runtime classes from XDR, XML, and XSD files, or from classes in a runtime assembly.

Windows Batch File

run_xsd.cmd
set MICROSOFT_XSD=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\xsd
set XSD_HOME=..\..\model_based\xsd_variants

"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_42_noXsdTypeInName.xsd" /classes /language:CS
"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_43_noXsdTypeInName.xsd" /classes /language:CS
"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_44_noXsdTypeInName.xsd" /classes /language:CS
"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_45_noXsdTypeInName.xsd" /classes /language:CS

set MICROSOFT_XSD=
set XSD_HOME=

Generated File

A code file is generated for C#.

Fragment of ddi-cdi_44_noXsdTypeInName.cs
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ddialliance.org/Specification/DDI-CDI/1.0/XMLSchema/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://ddialliance.org/Specification/DDI-CDI/1.0/XMLSchema/", IsNullable=false)]
public partial class DDICDIModels {
    
    private object[] itemsField;
    
    private Wrapper[] wrapperField;
    
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("Activity", typeof(Activity))]
    [System.Xml.Serialization.XmlElementAttribute("Agent", typeof(Agent))]
    [System.Xml.Serialization.XmlElementAttribute("AgentListing", typeof(AgentListing))]
    [System.Xml.Serialization.XmlElementAttribute("AgentPosition", typeof(AgentPosition))]
    [System.Xml.Serialization.XmlElementAttribute("AgentRelationship", typeof(AgentRelationship))]
    [System.Xml.Serialization.XmlElementAttribute("AgentStructure", typeof(AgentStructure))]
    [System.Xml.Serialization.XmlElementAttribute("AllenIntervalAlgebra", typeof(AllenIntervalAlgebra))]
    [System.Xml.Serialization.XmlElementAttribute("AttributeComponent", typeof(AttributeComponent))]
    [System.Xml.Serialization.XmlElementAttribute("AuthorizationSource", typeof(AuthorizationSource))]
    [System.Xml.Serialization.XmlElementAttribute("Category", typeof(Category))]
    [System.Xml.Serialization.XmlElementAttribute("CategoryPosition", typeof(CategoryPosition))]
    [System.Xml.Serialization.XmlElementAttribute("CategoryRelationStructure", typeof(CategoryRelationStructure))]
    [System.Xml.Serialization.XmlElementAttribute("CategoryRelationship", typeof(CategoryRelationship))]
    [System.Xml.Serialization.XmlElementAttribute("CategorySet", typeof(CategorySet))]
    [System.Xml.Serialization.XmlElementAttribute("CategoryStatistic", typeof(CategoryStatistic))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationFamily", typeof(ClassificationFamily))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationIndex", typeof(ClassificationIndex))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationIndexEntry", typeof(ClassificationIndexEntry))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationIndexEntryPosition", typeof(ClassificationIndexEntryPosition))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationItem", typeof(ClassificationItem))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationItemPosition", typeof(ClassificationItemPosition))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationItemRelationship", typeof(ClassificationItemRelationship))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationItemStructure", typeof(ClassificationItemStructure))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationPosition", typeof(ClassificationPosition))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationSeries", typeof(ClassificationSeries))]
    [System.Xml.Serialization.XmlElementAttribute("ClassificationSeriesStructure", typeof(ClassificationSeriesStructure))]
    [System.Xml.Serialization.XmlElementAttribute("Code", typeof(Code))]
    [System.Xml.Serialization.XmlElementAttribute("CodeList", typeof(CodeList))]
    [System.Xml.Serialization.XmlElementAttribute("CodeListStructure", typeof(CodeListStructure))]
    [System.Xml.Serialization.XmlElementAttribute("CodePosition", typeof(CodePosition))]
    [System.Xml.Serialization.XmlElementAttribute("CodeRelationship", typeof(CodeRelationship))]
    [System.Xml.Serialization.XmlElementAttribute("ComponentPosition", typeof(ComponentPosition))]
    [System.Xml.Serialization.XmlElementAttribute("Concept", typeof(Concept))]

Source file ddi-cdi.cs