My Schema has:
<xsd:simpleType name="MixedType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Normal"/>
<xsd:enumeration value="Alpha"/>
<xsd:enumeration value="Bravo"/>
<xsd:enumeration value="Charlie"/>
<xsd:enumeration value="Delta"/>
<xsd:enumeration value="NORMAL"/>
<xsd:enumeration value="ALPHA"/>
<xsd:enumeration value="BRAVO"/>
<xsd:enumeration value="CHARLIE"/>
<xsd:enumeration value="DELTA"/>
</xsd:restriction>
</xsd:simpleType>
I then use castor to create the class files, and marshal/unmarshal the
objects. If the xml file has any of the capitals, it fails while
unmarshalling. Looking at the code generated
/**
* Method init.
*
* @return the initialized Hashtable for the member table
*/
private static java.util.Hashtable init(
) {
Hashtable members = new Hashtable();
members.put("Normal", NORMAL);
members.put("Alpha", ALPHA);
members.put("Bravo", BRAVO);
members.put("Charlie", CHARLIE);
members.put("Delta", DELTA);
return members;
}
Is a class in the .types file, there is nothing similar for "NORMAL"
..., it seems to care about capitalization.
Not a big problem, but thought I'd mention it.
Thanks.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email