<?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 - Qualifying Core, Secondary or Incidental Activities Schedule</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 17, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ================================================================================= -->
	<!-- =======  Qualifying Core, Secondary or Incidental Activities Schedule    ======== -->
	<!-- ================================================================================= -->


	<xsd:element name="QlfyCoreSecOrIncidlActySch">
		<xsd:annotation>
			<xsd:documentation>Qualifying Core, Secondary or Incidental Activities Schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="QlfyCoreSecOrIncidlActySchType">
					<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="QualifyingCoreSecondaryOrIncidentalActivitiesSchedule">
						<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="QlfyCoreSecOrIncidlActySchType">
		<xsd:annotation>
			<xsd:documentation>Content model for qualifying core, secondary or incidental activities schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="QlfyCoreSecOrIncidlActivity" type="QlfyCoreSecOrIncidlActivityType" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="QlfyCoreSecOrIncidlActivityType">
		<xsd:annotation>
			<xsd:documentation>Content model for qualifying core, secondary or incidental activities schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>		

			<!-- Corporation Name -->
			<xsd:element name="CorporationName" type="BusinessNameType">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Corporation name</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
				
			<!-- EIN of Corporation or EIN Missing Reason -->
			<xsd:choice>
			
				<!-- Corporation EIN -->
				<xsd:element name="CorporationEIN" type="EINType">	
					<xsd:annotation>
						<xsd:documentation>
							<Description>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="TextType">
							<xsd:enumeration value="APPLD FOR"/>
							<xsd:enumeration value="FOREIGNUS"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
			</xsd:choice>
			
			<!-- Corporate Gross Income -->
			<xsd:element name="CorporateGrossIncomeAmt" type="USAmountType" minOccurs="0">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Corporate gross income from core qualifying activities</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Qualifying Secondary Activities Included in the 20% Limit -->
			<xsd:element name="QlfySecActyIncld20PctLmtAmt" type="USAmountType" minOccurs="0">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Qualifying secondary activities included in the 20% limit</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Qualifying Secondary Activities Exceeding the 20% Limit -->
			<xsd:element name="QualifyingSecActyEx20PctLmtAmt" type="USAmountType" minOccurs="0">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Qualifying secondary activities exceeding the 20% limit</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Qualifying Incidental Activities Included in the 0.1% Limit -->
			<xsd:element name="QfyIncdtlActyIncldOnePctLmtAmt" type="USAmountType" minOccurs="0">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Qualifying incidental activities included in the 0.1% limit</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
				
			<!-- Qualifying Incidental Activities Exceeding the 0.1% Limit -->
			<xsd:element name="QlfyIncdtlActyExOnePctLmtAmt" type="USAmountType" minOccurs="0">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Qualifying incidental activities exceeding the 0.1% limit</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			
		</xsd:sequence>
	</xsd:complexType>		
	
</xsd:schema>
