<?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 - Reporting Corporations Under Section 6038A or on a Consolidated Form 5472 Schedule</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>September 5, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ========================================================================================== -->
	<!-- === Reporting Corporations Under Section 6038A or on a Consolidated Form 5472 Schedule === -->
	<!-- ========================================================================================== -->


	<xsd:element name="RptgCorp6038AOrCnsldt5472Sch">
		<xsd:annotation>
			<xsd:documentation>Reporting corporations under section 6038A or on a consolidated Form 5472 schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="RptgCorp6038AOrCnsldt5472SchType">
					<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="ReportingCorpsUnderSect6038AOrOnAConsolidatedForm5472Schedule">
						<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="RptgCorp6038AOrCnsldt5472SchType">
		<xsd:annotation>
			<xsd:documentation>Content model for reporting corporations under section 6038A or on a consolidated Form 5472 schedule</xsd:documentation>
		</xsd:annotation>				
		<xsd:sequence>			
		
			<!-- Reporting Corporation Under Section 6038A or on a Consolidated Form 5472 -->
			<xsd:element name="ReportingCorp6038AOrCnsldt5472" type="ReportingCorp6038AOrCnsldt5472Type" minOccurs="0" maxOccurs="unbounded">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Reporting corporation under section 6038A or on a consolidated Form 5472</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
		</xsd:sequence>
	</xsd:complexType>		

	<!-- Type of Repeating element -  Reporting Corporation Under Section 6038A or on a Consolidated Form 5472 -->
	<xsd:complexType name="ReportingCorp6038AOrCnsldt5472Type">
		<xsd:sequence>		

			<!-- Name of the Reporting Corporation - 1 -->	
			<xsd:element name="CorporationName" type="BusinessNameType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Name of the reporting corporation</Description>
					</xsd:documentation>
				</xsd:annotation>				
			</xsd:element>
		
			<!-- Reporting Corporation's Address - choice between US Address or Foreign Address -->
			<xsd:choice minOccurs="0">			
			
				<!-- Reporting Corporation's US Street Address -->			
				<xsd:element name="USAddress" type="USAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>US street address</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			
				<!-- Reporting Corporation's Foreign Street Address -->
				<xsd:element name="ForeignAddress" type="ForeignAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Foreign street address</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				
			</xsd:choice>					

			<!-- Choice between Corporation EIN, or Missing EIN Reason -->
			<xsd:choice minOccurs="0">
			
				<!-- Reporting Corporation's EIN -->
				<xsd:element name="CorporationEIN" type="EINType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Employer identification number</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:enumeration value="FOREIGNUS"/>						
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				
			</xsd:choice>						

			<!-- Reporting Corporation Included on Consolidated Form 5472? -->
			<xsd:element name="TrRptConsolidatedFrm5472Ind" type="BooleanType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Included on Consolidated Form 5472?</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>			

</xsd:schema>
