Jump to content

Complex Type Elements - Mixed Attribute


Aruna

Recommended Posts

In complex type elements what is the purpose of mixed attribute?<xs:element name="letter" type="lettertype"/><xs:complexType name="lettertype" mixed="true"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="orderid" type="xs:positiveInteger"/> <xs:element name="shipdate" type="xs:date"/> </xs:sequence></xs:complexType>Does the mixed attribute specify that any datatype can be used. Here i can see that the datatype of name is hardcoded as string and that of orderid is hardcoded as positiveInteger. What's the purpose of mixed attribute in complex type elements?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...