Enumerations are not getting converted / Created.

Sep 30, 2011 at 6:37 PM
Edited Sep 30, 2011 at 7:03 PM

I'm generating a single CS file from 20+ HL7 V3 XSD files.  In 19 occurrences there should be 19 enumeration arrays. XSD2Code is generating these as String[] 's instead.

It handles other enumerations, but ones defined like this it turns into a string[]



	<xs:simpleType name="EntityNamePartType">
			<xs:documentation>vocSet: T15880 (C-0-T15880-cpt)</xs:documentation>
		<xs:union memberTypes="x_OrganizationNamePartType x_PersonNamePartType">
				<xs:restriction base="cs">
					<xs:enumeration value="DEL"/>
					<xs:enumeration value="FAM"/>
					<xs:enumeration value="GIV"/>
					<xs:enumeration value="PFX"/>
					<xs:enumeration value="SFX"/>


or the following where EntityNamePartQualifier should be an enum


       <xs:simpleType name="EntityNamePartQualifier">
			<xs:documentation>vocSet: T15888 (C-0-T15888-cpt)</xs:documentation>
		<xs:union memberTypes="OrganizationNamePartQualifier"/>
	<xs:simpleType name="OrganizationNamePartQualifier">
			<xs:documentation>abstDomain: A15889 (C-0-T15888-A15889-cpt)</xs:documentation>
		<xs:restriction base="cs">
			<xs:enumeration value="LS"/>
			<xs:enumeration value="AC"/>
			<xs:enumeration value="AD"/>
			<xs:enumeration value="BR"/>
			<xs:enumeration value="CL"/>
			<xs:enumeration value="IN"/>
			<xs:enumeration value="NB"/>
			<xs:enumeration value="PR"/>
			<xs:enumeration value="SP"/>
			<xs:enumeration value="TITLE"/>
			<xs:enumeration value="VV"/>

Is there an option I can use with the CommandLine options to get it to recognize this as an enumeration?