A practical example of why mixed="true" would be positioned on a complexContent element and not its parent complexType element?

Hi Folks,

This is a complexType with mixed content:

    <xs:complexType name="C1" mixed="true">
        <xs:complexContent>
            ...
        </xs:complexContent>
    </xs:complexType>

This is also a complexType with mixed content: 

    <xs:complexType name="C1">
        <xs:complexContent mixed="true">
            ...
        </xs:complexContent>
    </xs:complexType>

The two are exactly equivalent in terms of what they validate.

The first has mixed="true" on the complexType element.

The second has mixed="true" on the complexContent element.

Would you give me a practical example which illustrates why the second one would be preferred over the first one please?

/Roger

Received on Saturday, 22 December 2012 16:38:31 UTC