[xsd-users] Xsd:list
Kastner, Fred
fred.kastner at emc.com
Fri Jan 25 09:00:38 EST 2013
Hi all,
I am new to XSD and I need some help.
I have the following in my xsd file:
<xsd:complexType name="prof_t">
<xsd:sequence>
<xsd:choice maxOccurs="1" minOccurs="0">
<xsd:element name="uniqueId_" type="xsd:string">
</xsd:element>
</xsd:choice>
<xsd:choice maxOccurs="1" minOccurs="0">
<xsd:element name="desc_" type="xsd:string">
</xsd:element>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
I want to create a "list type" and I tried to use:
<xsd:simpleType name="proflist_t">
<xsd:list itemType="prof_t"/>
</xsd:simpleType>
I compile using the command:
xsd cxx-tree --generate-serialization prof.xsd
I get the error:
base type 'profile_t' not found in 'proflist_t' definition
How can I solve the problem?
Regards,
--------------------------------------------------------------
Fred Kastner
fred.kastner at emc.com
EMC,Inc. Phone 508-249-2110
176 South St.
Hopkinton, MA 01748
More information about the xsd-users
mailing list