<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://com.leveltwo" xmlns:three="http://com.levelthree" xmlns:four="http://com.levelfour" targetNamespace="http://com.leveltwo" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://com.levelthree" schemaLocation="LevelThree.xsd"/>
	<xs:import namespace="http://com.levelfour" schemaLocation="LevelFour.xsd"/>
	<xs:complexType name="LevelTwoType">
		<xs:sequence>
			<xs:element name="LevelTwo" type="xs:string" minOccurs="0"/>
			<xs:element name="LevelThree" type="three:LevelThreeType" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<!-- This causes JibX error -->
	<xs:complexType name="RestrictedLevelThreeType">
		<xs:complexContent>
			<xs:restriction base="three:LevelThreeType">
				<xs:sequence>
					<xs:element name="LevelFour" type="four:LevelFourType" minOccurs="0"/>
				</xs:sequence>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>
</xs:schema>

