Commit 8496896f authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2003-11-24 15:56:25 by szach] added test for mixed content model

Original author: szach
Date: 2003-11-24 15:56:25+00:00
parent 642d1e6b
<root>
Interleaved
<a>1</a>
with
<c>2</c>
even
<d>3</d>
worst
<c>4</c>
#PCDATA
<d>5</d>
textual
<e>6</e>
crap
</root>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--
mixed content model = a (b | (c d)*) e
-->
<xsd:element name="root">
<xsd:complexType mixed="true">
<xsd:sequence>
<xsd:element name="a" type="xsd:string"/>
<xsd:choice>
<xsd:element name="b" type="xsd:string"/>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:element name="c" type="xsd:string"/>
<xsd:element name="d" type="xsd:string"/>
</xsd:sequence>
</xsd:choice>
<xsd:element name="e" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment