W3C

MixedContentType Example

  <xs:element name="mixedContentType" type="ex:MixedContentType"/>

  <xs:complexType name="MixedContentType" mixed="true">
        <xs:sequence>
          <xs:element name="elem1" type="xs:string"/>
          <xs:element name="elem2" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>

The example schema [MixedContentType.xsd] has been classified as being "" as it exhibits the following patterns:

Status Name XPath

To facilitate testing, the example schema element has been wrapped in the following descriptions:

The following valid instance documents are provided:

Instance Validity
MixedContentType01
MixedContentType02
MixedContentType03
MixedContentType04

  <ex:mixedContentType>
        <ex:elem1>Tagged Value</ex:elem1> mixed value <ex:elem2>Tagged Value</ex:elem2>
      </ex:mixedContentType>
  <ex:mixedContentType> some text <ex:elem1>Tagged Value</ex:elem1> more text <ex:elem2>Tagged
          Value</ex:elem2>
      </ex:mixedContentType>
  <ex:mixedContentType>
        <ex:elem1>Tagged Value</ex:elem1> mixed text value <ex:elem2>Tagged Value</ex:elem2> mixed
        text value </ex:mixedContentType>
  <ex:mixedContentType> text mixed value <ex:elem1>Tagged Value</ex:elem1>
        <ex:elem2>Tagged Value</ex:elem2> some more text in a mixed value </ex:mixedContentType>

This document was produced by the W3C XML Schema Patterns for Databinding Working Group. Comments on this document may be sent to the public public-xsd-databinding-comments@w3.org mailing list (public archive).

Generated from examples.xml $Date$