Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

When an element contains both child elements and character data, it follows the mixed content model

<message>    A    <projectLead>B</projectLead>    C    <projectMember>D</projectMember>    E    <projectMember>F</projectMember>.    G<client>H<client>    I </message> The declaration that should be used to define a mixed content model is as follows: <xsd:element name="message">   <xsd:complexType mixed="true">    <xsd:sequence>     <xsd:element name="projectMember" type="xsd:string"/>     <xsd:element name="projectLead" type="xsd:string"/>     <xsd:element name="client" type="xsd:string"/>    </xsd:sequence>   </xsd:complexType> </xsd:element>