A practical example of why mixed="true" would be positioned on a complexContent element and not its parent complexType element?
"Costello, Roger L." <[email protected]> Sat, 22 Dec 2012 16:38:03 +0000
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
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