>is there a way of figuring out the actual type of the members of a list?
As I understand it: Cast the type to XSSimpleTypeDefinition and call its getItemType() method.
______________________________________
Joe Kesselman / IBM Research
in this case you get the schema type which in my example is "valList", I'd like to get the PSVI type of the actual data instance instead, in the following example I'd like to find out that the first element is an int, the second anthird a string and the fourth a float.
<xsd:simpleType name="valList">
<xsd:list>
<xsd:simpleType>
<xsd:union memberTypes="xsd:int xsd:float xsd:string"/>
</xsd:simpleType>
</xsd:list>
</xsd:simpleType>
<xsd:element name="someElement" type="valList"/>
...
<someElement>42 foo bar 3.14</someElement>
Thanks for your help, regards,
- Fabio
