Hi, I've declared a simple type that's a enumeration of string values (See below). I use it later to define an element and say the element is nillable. When I get a nil element, the deserialization process throws an IllegalArgumentException: it's trying to find the empty string in the list of provider codes. This doesn't seem right -- is it? Any suggestions as to what to do?
Cheers,
Chris
<xs:simpleType name="ProviderCode">
<xs:restriction base="xs:string">
<xs:enumeration value="CIN">
<xs:annotation>
<xs:documentation>Cingular</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="VER">
<xs:annotation>
<xs:documentation>Verizon</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ATT">
<xs:annotation>
<xs:documentation>AT&T</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="SPR">
<xs:annotation>
<xs:documentation>Sprint</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="TMO">
<xs:annotation>
<xs:documentation>T-Mobile</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="MET">
<xs:annotation>
<xs:documentation>MetroPCS</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="VIR">
<xs:annotation>
<xs:documentation>Virgin</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="USC">
<xs:annotation>
<xs:documentation>US Cellular</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ALT">
<xs:annotation>
<xs:documentation>AllTel</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="MID">
<xs:annotation>
<xs:documentation>Midwest Wireless</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="WES">
<xs:annotation>
<xs:documentation>Western Wireless</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="NXT">
<xs:annotation>
<xs:documentation>Nextel</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
