# two_level.yml - a more complex sequence

--- |
  <?xml version="1.0" encoding="UTF-8"?>
  <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="foo">
      <complexType>
        <sequence>
          <element name="one_or_more-1" minOccurs="1" maxOccurs="unbounded"/>
          <element name="zero_or_one-2" minOccurs="0" maxOccurs="1"/>
          <element name="one_or_two-3" minOccurs="1" maxOccurs="2"/>

        </sequence>
      </complexType>
    </element>
  </schema>

--- |
 <foo>
  <one_or_more-1 />
  <one_or_more-1 />
  <one_or_more-1 />
  <one_or_two-3 />
 </foo>
--- >
PASS

--- |
 <foo>
  <one_or_more-1 />
  <one_or_more-1 />
  <one_or_more-1 />
  <zero_or_one-2 />
  <one_or_two-3 />
  <one_or_two-3 />
 </foo>
--- >
PASS

--- |
 <foo>
  <one_or_more-1 />
  <one_or_more-1 />
  <zero_or_one-2 />
  <one_or_more-1 />
  <one_or_two-3 />
  <one_or_two-3 />
 </foo>
--- >
FAIL

--- |
 <foo>
  <zero_or_one-2 />
  <one_or_two-3 />
  <one_or_two-3 />
 </foo>
--- >
FAIL /'zero_or_one-2' does not match/




