<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.irs.gov/efile" xmlns="http://www.irs.gov/efile" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">

	<xsd:annotation>
		<xsd:documentation>
			<Description>IRS e-file Corporate Income Tax Schema - IRS Form 1122</Description>
			<TaxYear>2012</TaxYear>
			<MaturityLevel>Draft Release</MaturityLevel>
			<ReleaseDate>September 5, 2012</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

	<xsd:include schemaLocation="../../../Common/efileTypes.xsd"/>


	<!-- =============================================================== -->
	<!-- ======================  IRS Form 1122 ========================= -->
	<!-- =============================================================== -->


	<xsd:element name="IRS1122">
		<xsd:annotation>
			<xsd:documentation>IRS Form 1122</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS1122Type">
					<xsd:attributeGroup ref="DocumentAttributes">
						<xsd:annotation>
							<xsd:documentation>Common return document attributes</xsd:documentation>
						</xsd:annotation>
					</xsd:attributeGroup>
					<xsd:attribute name="documentName" type="xsd:string" fixed="IRS1122">
						<xsd:annotation>
							<xsd:documentation>IRS internal use only. To avoid error in the return, do not include the attribute name or value.</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name="IRS1122Type">
		<xsd:annotation>
			<xsd:documentation>Content model for Form 1122</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>

			<!-- Calendar year or tax year beginning and ending -->
			<xsd:choice minOccurs="0">

				<!-- For the Calendar Year 20xx -->
				<xsd:element name="CalendarYear" type="YearType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>For the Calendar Year 20xx</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

				<xsd:sequence>
					<!-- Tax Year Beginning -->
					<xsd:element name="TaxYearBeginning" type="DateType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								<Description>Tax year beginning</Description>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<!-- Tax Year Ending -->
					<xsd:element name="TaxYearEnding" type="DateType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								<Description>Tax year ending</Description>
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>

			</xsd:choice>

			<!-- Name of the Subsidiary Corporation -->
			<xsd:element name="SubsidiaryCorporationName" type="BusinessNameType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Name of the subsidiary corporation</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Subsidiary Corporation EIN or Missing EIN Reason -->
			<xsd:choice minOccurs="0">

				<!-- Subsidiary Corporation EIN -->
				<xsd:element name="SubsidiaryCorporationEIN" type="EINType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Subsidiary corporation EIN</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

				<!-- Missing EIN Reason -->
				<xsd:element name="MissingEINReason">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Missing EIN reason</Description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="StringType">
							<xsd:enumeration value="APPLD FOR"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>

			</xsd:choice>

			<!-- Choice: US Address Of The Subsidiary Corporation or Foreign Address Of The Subsidiary Corporation -->
			<xsd:choice minOccurs="0">

				<!-- US Address Of The Subsidiary Corporation -->
				<xsd:element name="SubsidiaryCorporationUSAddress" type="USAddressType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>US address of the subsidiary corporation</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

				<!-- Foreign Address Of The Subsidiary Corporation -->
				<xsd:element name="SubsidiaryCorpForeignAddress" type="ForeignAddressType" >
					<xsd:annotation>
						<xsd:documentation>
							<Description>Foreign address of the subsidiary corporation</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

			</xsd:choice>

		</xsd:sequence>

	</xsd:complexType>

</xsd:schema>
