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

	<xsd:annotation>
		<xsd:documentation>
			<Description>IRS e-file Corporate Income Tax Schema - IRS Form 1122</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 15, 2019</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="CalendarYr" 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="TaxYearBeginDt" 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="TaxYearEndDt" 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="SubsidiaryBusinessName" 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="SubsidiaryEIN" type="EINType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Subsidiary corporation EIN</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

				<!-- Missing EIN Reason -->
				<xsd:element name="MissingEINReasonCd">
					<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="SubsidiaryCorpUSAddress" 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>
			
			<!-- Name of Parent Corporation -->
			<xsd:element name="ParentCorporationName" type="BusinessNameType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Name of parent corporation</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Employer Identification Number -->
			<xsd:element name="ParentCorporationEIN" type="EINType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Employer identification number</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>

</xsd:schema>
