[xsd-users] Changes in xsd:choice from 1.3.0 to 1.8.0 ?
Filipe Dias
fil at immi.inesc-id.pt
Sun Jan 29 13:12:48 EST 2006
Hello,
I'm new to this mailinglist, so I don't know if a similar question has been
made..
I made some code using XSD in verstion 1.3.0 to read the following portion
of schema:
<xsd:complexType name="GidesGeometry_t">
<xsd:sequence>
<xsd:element name="event" type="event_t" />
<xsd:choice maxOccurs="1" minOccurs="1">
<xsd:element name="reference" type="GidesReference_t" />
<xsd:element name="shape" type="GidesShape_t" />
<xsd:element name="transformation" type="GidesTransformation_t" />
<xsd:element name="operation" type="GidesOperation_t" />
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
The C++ code I was using is:
bool ReadXSD(GidesGeometry_t *ggeom_data){
if(ggeom_data->shape.present())
_s = ggeom_data->shape();
...
}
In version 1.3.0, that 3rd line of code returned an object of type
"GidesShape_t"
Now, in version 1.8.0, it returns: "GidesShape_t::shape::container"
How do I reach the GidesShape_t object in version 1.8.0?
Thanks,
Fil.
More information about the xsd-users
mailing list