<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.irs.gov/efile" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="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 8816</Description>
			<TaxYear>2012</TaxYear>
			<MaturityLevel>Draft Release</MaturityLevel>
			<ReleaseDate>September 5, 2012</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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

	<!-- =================================================================== -->
	<!-- ======================== IRS Form 8816 ============================ -->
	<!-- =================================================================== -->

	<xsd:element name="IRS8816">
		<xsd:annotation>
			<xsd:documentation>IRS Form 8816</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS8816Type">
					<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="IRS8816">
						<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:attribute name="referenceDocumentId" type="IdListType"/>
					<xsd:attribute name="referenceDocumentName" type="StringType" fixed="Section847TaxBenefitRecomputationSchedule"/>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name="IRS8816Type">
		<xsd:annotation>
			<xsd:documentation>Content model for IRS Form 8816</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

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

			<!-- Taxpayer Identification Number or Missing EIN Reason -->
			<xsd:choice minOccurs="0">
			
				<!-- Taxpayer Identification Number -->
				<xsd:element name="EmployerIdentificationNumber" type="EINType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Taxpayer identification number</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				
				<!-- Missing EIN Reason -->
				<xsd:element name="MissingEINReason">
					<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>					

			<!-- Repeating Group for Special Loss Discount and Special Estimated Tax Payments info (spans Parts I - III) -->
			<xsd:element name="SpclLossDscntAndEstTaxPymnts" type="SpclLossDscntAndEstTaxPymntsType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Repeating group for Special Loss Discount and Special Estimated Tax Payments info</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>
	</xsd:complexType>

	<!-- Type for repeating group for Special Loss Discount and Special Estimated Tax Payments info (spans Parts I - III) -->
	<xsd:complexType name="SpclLossDscntAndEstTaxPymntsType">
		<xsd:annotation>
			<xsd:documentation>Content model for repeating group for Special Loss Discount and Special Estimated Tax Payments info</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

			<!-- ========= Part I: Special Loss Discount Amount ======== -->

			<!-- Accident Year -->
			<xsd:element name="AccidentYear" type="YearType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Accident year</Description>
						<LineNumber>Part I</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Undiscounted Unpaid Losses -->
			<xsd:element name="UndiscountedUnpaidLosses" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Undiscounted unpaid losses</Description>
						<LineNumber>Part I Line 1</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Discounted Unpaid Losses -->
			<xsd:element name="DiscountedUnpaidLosses" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Discounted unpaid losses</Description>
						<LineNumber>Part I Line 2</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Special Loss Discount Limitation -->
			<xsd:element name="SpecialLossDiscountLimitation" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Special loss discount limitation</Description>
						<LineNumber>Part I Line 3</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- ========= Part II: Special Loss Discount Account ======== -->

			<!-- Balance At Beginning Of The Year -->
			<xsd:element name="BalanceAtBeginningOfYear" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Balance at beginning of the year</Description>
						<LineNumber>Part II Line 4</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Additions-Section 847(4) -->
			<xsd:element name="AdditionsSection847" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Additions-section 847(4)</Description>
						<LineNumber>Part II Line 5</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Subtractions-Sec 847(5) -->
			<xsd:element name="SubtractionsSection847" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Subtractions-sec 847(5)</Description>
						<LineNumber>Part II Line 6</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Balance At End Of The Year -->
			<xsd:element name="BalanceAtEndOfYear" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Balance at end of the year</Description>
						<LineNumber>Part II Line 7</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- ========= Part III: Special Estimated Tax Payments ======== -->

			<!-- Balance At Beginning Of Year -->
			<xsd:element name="SETPBalanceAtBeginningOfYear" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Balance at beginning of year</Description>
						<LineNumber>Part III Line 8</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="USAmountType">
							<xsd:attribute name="referenceDocumentId" type="IdListType" />
							<xsd:attribute name="referenceDocumentName" type="StringType" fixed="DiffBetweenPrecedingYrAndCurrYrEndingBalanceStatement" />
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>

			<!-- Payments Made for Year -->
			<xsd:element name="PaymentsMadeForYear" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Payments made for year</Description>
						<LineNumber>Part III Line 9</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="USAmountType">
							<xsd:attribute name="referenceDocumentId" type="IdListType" />
							<xsd:attribute name="referenceDocumentName" type="StringType" fixed="PaymentsAddedInSubsequentYearsSchedule" />
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>

			<!-- Prior Section 847 Payments Transferred To Current Year -->
			<xsd:element name="PriorSection847PaymentsTrnsfr" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Prior section 847 payments transferred to current year</Description>
						<LineNumber>Part III Line 10</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Payments Applied For Year -->
			<xsd:element name="PaymentsAppliedForYear" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Payments applied for year</Description>
						<LineNumber>Part III Line 11</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Balance At The End Of The Year -->
			<xsd:element name="SETPBalanceAtEndOfYear" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Balance at the end of the year</Description>
						<LineNumber>Part III Line 12</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>
	</xsd:complexType>

</xsd:schema>
