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.
Prerequisites: Visual Studio
Windows Batch File
1set MICROSOFT_XSD=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\xsd
2set XSD_HOME=..\..\model_based\xsd_variants
3
4"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_42_noXsdTypeInName.xsd" /classes /language:CS
5"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_43_noXsdTypeInName.xsd" /classes /language:CS
6"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_44_noXsdTypeInName.xsd" /classes /language:CS
7"%MICROSOFT_XSD%" "%XSD_HOME%\ddi-cdi_45_noXsdTypeInName.xsd" /classes /language:CS
8
9set MICROSOFT_XSD=
10set XSD_HOME=
Generated File
A code file is generated for C#.
1[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
2[System.SerializableAttribute()]
3[System.Diagnostics.DebuggerStepThroughAttribute()]
4[System.ComponentModel.DesignerCategoryAttribute("code")]
5[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ddialliance.org/Specification/DDI-CDI/1.0/XMLSchema/")]
6[System.Xml.Serialization.XmlRootAttribute(Namespace="http://ddialliance.org/Specification/DDI-CDI/1.0/XMLSchema/", IsNullable=false)]
7public partial class DDICDIModels {
8
9 private object[] itemsField;
10
11 private Wrapper[] wrapperField;
12
13 /// <remarks/>
14 [System.Xml.Serialization.XmlElementAttribute("Activity", typeof(Activity))]
15 [System.Xml.Serialization.XmlElementAttribute("Agent", typeof(Agent))]
16 [System.Xml.Serialization.XmlElementAttribute("AgentListing", typeof(AgentListing))]
17 [System.Xml.Serialization.XmlElementAttribute("AgentPosition", typeof(AgentPosition))]
18 [System.Xml.Serialization.XmlElementAttribute("AgentRelationship", typeof(AgentRelationship))]
19 [System.Xml.Serialization.XmlElementAttribute("AgentStructure", typeof(AgentStructure))]
20 [System.Xml.Serialization.XmlElementAttribute("AllenIntervalAlgebra", typeof(AllenIntervalAlgebra))]
21 [System.Xml.Serialization.XmlElementAttribute("AttributeComponent", typeof(AttributeComponent))]
22 [System.Xml.Serialization.XmlElementAttribute("AuthorizationSource", typeof(AuthorizationSource))]
23 [System.Xml.Serialization.XmlElementAttribute("Category", typeof(Category))]
24 [System.Xml.Serialization.XmlElementAttribute("CategoryPosition", typeof(CategoryPosition))]
25 [System.Xml.Serialization.XmlElementAttribute("CategoryRelationStructure", typeof(CategoryRelationStructure))]
26 [System.Xml.Serialization.XmlElementAttribute("CategoryRelationship", typeof(CategoryRelationship))]
27 [System.Xml.Serialization.XmlElementAttribute("CategorySet", typeof(CategorySet))]
28 [System.Xml.Serialization.XmlElementAttribute("CategoryStatistic", typeof(CategoryStatistic))]
29 [System.Xml.Serialization.XmlElementAttribute("ClassificationFamily", typeof(ClassificationFamily))]
30 [System.Xml.Serialization.XmlElementAttribute("ClassificationIndex", typeof(ClassificationIndex))]
31 [System.Xml.Serialization.XmlElementAttribute("ClassificationIndexEntry", typeof(ClassificationIndexEntry))]
32 [System.Xml.Serialization.XmlElementAttribute("ClassificationIndexEntryPosition", typeof(ClassificationIndexEntryPosition))]
33 [System.Xml.Serialization.XmlElementAttribute("ClassificationItem", typeof(ClassificationItem))]
34 [System.Xml.Serialization.XmlElementAttribute("ClassificationItemPosition", typeof(ClassificationItemPosition))]
35 [System.Xml.Serialization.XmlElementAttribute("ClassificationItemRelationship", typeof(ClassificationItemRelationship))]
36 [System.Xml.Serialization.XmlElementAttribute("ClassificationItemStructure", typeof(ClassificationItemStructure))]
37 [System.Xml.Serialization.XmlElementAttribute("ClassificationPosition", typeof(ClassificationPosition))]
38 [System.Xml.Serialization.XmlElementAttribute("ClassificationSeries", typeof(ClassificationSeries))]
39 [System.Xml.Serialization.XmlElementAttribute("ClassificationSeriesStructure", typeof(ClassificationSeriesStructure))]
40 [System.Xml.Serialization.XmlElementAttribute("Code", typeof(Code))]
41 [System.Xml.Serialization.XmlElementAttribute("CodeList", typeof(CodeList))]
42 [System.Xml.Serialization.XmlElementAttribute("CodeListStructure", typeof(CodeListStructure))]
43 [System.Xml.Serialization.XmlElementAttribute("CodePosition", typeof(CodePosition))]
44 [System.Xml.Serialization.XmlElementAttribute("CodeRelationship", typeof(CodeRelationship))]
45 [System.Xml.Serialization.XmlElementAttribute("ComponentPosition", typeof(ComponentPosition))]
46 [System.Xml.Serialization.XmlElementAttribute("Concept", typeof(Concept))]
Source file ddi-cdi.cs