Jump to content

Complex Type Elements - Mixed Attribute


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...