Hello,
I have seen e-mails in the archives on how an exception used to be
thrown about union not being supported in the sourceGenerator. I don't
see that exception now, but my resulting class is a little off. It
doesn't have the content variable. It looks like it is because of the
union of a hex and string. Schema is below. My questions are
1. Is union supported in CVS base?
2. If it is supported, where can I start to fix this bug(What class?) I
figure I can start in the unmarshaller and work down, but you may be
able to tell me to skip right to some other class and save me an hour or
two.
thanks,
Dean
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.ecma.ch/standards/ecma-323/csta"
xmlns:csta="http://www.ecma.ch/standards/ecma-323/csta"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:annotation>
<xsd:documentation>CSTA-device-identifiers</xsd:documentation>
</xsd:annotation>
<xsd:complexType name="DeviceID">
<xsd:annotation>
<xsd:documentation>uses flattened structure</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="csta:DeviceIDType">
<xsd:attribute name="connectionRate" use="optional">
<xsd:simpleType>
<xsd:restriction base="xsd:long">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="DeviceIDType">
<xsd:union memberTypes="csta:OtherPlan csta:Number"/>
</xsd:simpleType>
<xsd:simpleType name="OtherPlan">
<xsd:restriction base="xsd:hexBinary"/>
</xsd:simpleType>
<xsd:simpleType name="Number">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:schema>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev