Ok, so not even sure how to ask this, but I'm looking for help on how to create an XML schema file so that when a xml file is loaded into a dataset based on said schema, the data in the tables is as I expect it to be.
Here is the XML data:
<Cabinet>
<Name>DANCE</Name>
<MappedTypes>
<TypeMapInfo>
<TypeName>HIP HOP</TypeName>
<DefaultInstitution />
<DefaultAuthority>511</DefaultAuthority>
<DefaultDocumentName />
</TypeMapInfo>
<TypeMapInfo>
<TypeName>JITTERBUG</TypeName>
<DefaultInstitution />
<DefaultAuthority>511</DefaultAuthority>
<DefaultDocumentName />
</TypeMapInfo>
</MappedTypes>
</Cabinet>
and basically, I would like it to show up like this in a datatable:
Cabinet | Type Name | DefaultInstitution | DefaultAuthority | DefaultDocumentName
Dance | HIP HOP | | 511 |
Dance | JITTERBUG | | 511 |
So Far this is what I have, but it only loads the first type name listed under the cabinet:
<xs:element maxOccurs="unbounded" name="Cabinet">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string" />
<!--<xs:element name="MappedTypes"/>
<xs:element name="TypeMapInfo"/>-->
<xs:element name="TypeName" type="xs:string" />
<xs:element name="DefaultInstitution" type="xs:string" />
<xs:element name="DefaultAuthority" type="xs:unsignedShort" />
<xs:element name="DefaultDocumentName" />
</xs:sequence>
</xs:complexType>
</xs:element>