<?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 Income Tax Schema - Connected Earnings And Profits Schedule</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 15, 2019</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ======================================================== -->
	<!-- ======= Connected Earnings And Profits Schedule ======== -->
	<!-- ======================================================== -->

	<xsd:element name="ConnectedEarningsProfitsSch">
		<xsd:annotation>
			<xsd:documentation>Connected Earnings And Profits Schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="ConnectedEarningsProfitsSchType">
					<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="ConnectedEarningsProfitsSchedule">
						<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="ConnectedEarningsProfitsSchType">
		<xsd:annotation>
			<xsd:documentation>Content model for connected earnings and profits schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

			<!-- Corporation Name -->
			<xsd:element name="CorporationName" type="BusinessNameType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Corporation name</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Corporation EIN or Corporation Missing EIN reason -->
			<xsd:choice minOccurs="0">
				<!-- Corporation EIN -->
				<xsd:element name="CorporationEIN" type="EINType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Corporation EIN</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<!-- Corporation Missing EIN reason -->
				<xsd:element name="MissingEINReasonCd">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Corporation missing EIN reason</Description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="StringType">
							<xsd:enumeration value="APPLD FOR"/>
							<xsd:enumeration value="FOREIGNUS"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
			</xsd:choice>

			<!-- Corporation Adjustments Details -->
			<xsd:element name="CorporationAdjustments" type="CorporationAdjustmentsType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Corporation adjustments details</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>

	<xsd:complexType name="CorporationAdjustmentsType">
		<xsd:annotation>
			<xsd:documentation>Content model for the corporation adjustments</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>

			<!-- Adjustments to the Corporations Effectively Connected Taxable Income -->
			<xsd:element name="AdjToCorpEffCnnctTxIDscTxt" type="LineExplanationType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Adjustments to the corporations effectively connected taxable income</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Positive Adjustments for Certain Effectively Connected Income Items That are Excluded From ECTI but Included in Computing ECEP -->
			<xsd:element name="AdjECIExcldECTIIncldECEPAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Positive adjustments for certain effectively connected income items that are excluded from ECTI but included in computing ECEP</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Positive Adjustments for Certain Items Deducted in Computing ECTI but not Deducted in Computing ECEP -->
			<xsd:element name="AdjDedECTINotDedECEPAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Positive adjustments for certain items deducted in computing ECTI but not deducted in computing ECEP</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Negative Adjustments for Certain Deductible Items That may not be Deducted in Computing ECTI but Must be Deducted in Computing ECEP -->
			<xsd:element name="AdjDedItemNotDedECTIDedECEPAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Negative adjustments for certain deductible items that may not be deducted in computing ECTI but must be deducted in computing ECEP</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>
</xsd:schema>
