<?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 Tax Exempt and Government Entities Schema - Return Header for 1120 POL Returns</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>R10.3 Drop 5 Final</MaturityLevel>
			<ReleaseDate>October 15, 2019</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>
	
	<xsd:include schemaLocation="../../Common/efileTypes.xsd"/>
	<xsd:element name="ReturnHeader" type="ReturnHeaderType"/>
	
	<xsd:complexType name="ReturnHeaderType">
		<xsd:annotation>
			<xsd:documentation>Content model for the corporate tax return</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			
			<!-- Date and Time Stamp -->
			<xsd:element name="ReturnTs" type="TimestampType">
				<xsd:annotation>
					<xsd:documentation>The date and time when the return was created</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Tax Period End Date -->
			<xsd:element name="TaxPeriodEndDt" type="DateType"/>
			<!-- Disaster Relief -->
			<xsd:element name="DisasterReliefTxt" type="LineExplanationType" minOccurs="0"/>
			<!-- Intermediate Service Provider Number -->
			<xsd:element name="ISPNum" type="ISPType" minOccurs="0"/>
			
			<!-- PreparerFirm -->
			<xsd:element name="PreparerFirmGrp" minOccurs="0">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="PreparerFirmEIN" type="EINType"/>
						<xsd:element name="PreparerFirmName" type="BusinessNameType"/>
						<xsd:choice>
							<xsd:element name="PreparerUSAddress" type="USAddressType"/>
							<xsd:element name="PreparerForeignAddress" type="ForeignAddressType"/>
						</xsd:choice>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			
			<!-- Software Identification -->
			<xsd:element name="SoftwareId" type="SoftwareIdType"/>
			
			<!-- Software Version -->
			<xsd:element name="SoftwareVersionNum" type="SoftwareVersionType" minOccurs="0"/>
			
			<!-- Multiple Software Packages Used ? -->
			<xsd:element name="MultSoftwarePackagesUsedInd" type="BooleanType"/>
			
			<!-- Originator -->
			<xsd:element name="OriginatorGrp">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="EFIN" type="EFINType"/>
						<xsd:element name="OriginatorTypeCd" type="OriginatorType"/>
						<!-- Practitioner PIN -->
						<xsd:element name="PractitionerPINGrp" minOccurs="0">
							<xsd:complexType>
								<xsd:sequence>
									<xsd:element name="EFIN" type="EFINType"/>
									<xsd:element name="PIN" type="PINType"/>
								</xsd:sequence>
							</xsd:complexType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			
			<!-- PIN entered by -->
			<xsd:element name="PINEnteredByCd" minOccurs="0">
				<xsd:simpleType>
					<xsd:restriction base="StringType">
						<xsd:enumeration value="Taxpayer"/>
						<xsd:enumeration value="ERO"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			
			<!-- Signature Option -->
			<xsd:element name="SignatureOptionCd" minOccurs="0">
				<xsd:simpleType>
					<xsd:restriction base="StringType">
						<xsd:enumeration value="PIN Number"/>
						<xsd:enumeration value="Binary Attachment 8453 Signature Document"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			
			<!-- Return Identifiers -->
			<xsd:element name="ReturnTypeCd">
				<xsd:simpleType>
					<xsd:restriction base="StringType">
						<xsd:enumeration value="1120POL"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			
			<!-- Tax Period Begin Date -->
			<xsd:element name="TaxPeriodBeginDt" type="DateType"/>

			<!-- Filer -->
			<xsd:element name="Filer">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="EIN" type="EINType"/>
						<xsd:element name="BusinessName" type="BusinessNameType"/>
						<xsd:element name="InCareOfNm" type="InCareOfNameType" minOccurs="0"/>
						<xsd:element name="BusinessNameControlTxt" type="BusinessNameControlType"/>
						<xsd:choice>
							<xsd:element name="USAddress" type="USAddressType"/>
							<xsd:element name="ForeignAddress" type="ForeignAddressType"/>
						</xsd:choice>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			
			<!-- Officer -->
			<xsd:element name="BusinessOfficerGrp">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="PersonNm" type="PersonNameType"/>
						<xsd:element name="PersonTitleTxt" type="PersonTitleType"/>
						<xsd:element name="PhoneNum" type="PhoneNumberType" minOccurs="0"/>
						<xsd:element name="EmailAddressTxt" type="EmailAddressType" minOccurs="0"/>
						<xsd:element name="SignatureDt" type="DateType"/>
						<xsd:element name="TaxpayerPIN" type="PINType" minOccurs="0"/>
						<xsd:element name="DiscussWithPaidPreparerInd" type="BooleanType" minOccurs="0"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
						
			<!-- Preparer -->
			<xsd:element name="PreparerPersonGrp" minOccurs="0">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="PreparerPersonNm" type="PersonNameType" minOccurs="0"/>
						<xsd:choice>
							<xsd:element name="SSN" type="SSNType"/>
							<xsd:element name="PTIN" type="PTINType"/>
						</xsd:choice>
						<xsd:element name="PhoneNum" type="PhoneNumberType" minOccurs="0"/>
						<xsd:element name="EmailAddressTxt" type="EmailAddressType" minOccurs="0"/>
						<xsd:element name="PreparationDt" type="DateType" minOccurs="0"/>
						<xsd:element name="SelfEmployedInd" type="CheckboxType" minOccurs="0"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>	

			<!-- Filing Security Information -->
			<xsd:element name="FilingSecurityInformation" minOccurs="0">
				<xsd:complexType>
					<xsd:sequence>
						<!-- IP Address -->
						<xsd:element name="IPAddress" type="IPAddressType" minOccurs="0"/>
						<!-- IP Date -->
						<xsd:element name="IPDt" type="DateType" minOccurs="0"/>
						<!-- IP Time -->
						<xsd:element name="IPTm" type="TimeType" minOccurs="0"/>
						<!-- IP Timezone Code -->
						<xsd:element name="IPTimezoneCd" type="TimezoneType" minOccurs="0"/>
						<!-- Federal Original Submission Identification -->
						<xsd:element name="FederalOriginalSubmissionId" type="SubmissionIdType" minOccurs="0"/>
						<!-- Federal Original Submission Identification Date -->
						<xsd:element name="FederalOriginalSubmissionIdDt" type="DateType" minOccurs="0"/>
						<!-- Filing License Type Code -->
						<xsd:element name="FilingLicenseTypeCd" minOccurs="0">
							<xsd:simpleType>
								<xsd:restriction base="TextType">
									<xsd:enumeration value="S"/>
									<xsd:enumeration value="P"/>
									<xsd:enumeration value="O"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<!-- Device Identification at the time the submission is created -->
						<xsd:element name="AtSubmissionCreationDeviceId" type="DeviceIdType" minOccurs="0"/>
						<!-- Device Identification at the time the submission is filed -->
						<xsd:element name="AtSubmissionFilingDeviceId" type="DeviceIdType" minOccurs="0"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>

			<!-- Tax Year -->
			<xsd:element name="TaxYr" type="YearType"/>

		</xsd:sequence>
		
		<!-- Binary Attachment Count -->
		<xsd:attribute name="binaryAttachmentCnt" type="IntegerNNType" use="required">
			<xsd:annotation>
				<xsd:documentation>The number of binary attachments in the return</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>		
	</xsd:complexType>
</xsd:schema>
