<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.irs.gov/efile" xmlns="http://www.irs.gov/efile"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">

	<xsd:annotation>
		<xsd:documentation>
			<Description>IRS e-file Schema - Form 1120 Schedule D</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 1120 Schedule D ====================== -->
	<!-- =============================================================== -->


	<xsd:element name="IRS1120ScheduleD">
		<xsd:annotation>
			<xsd:documentation>IRS Form 1120 Schedule D</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS1120ScheduleDType">
					<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="IRS1120ScheduleD">
						<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:annotation>
							<xsd:documentation>List of document ID's of forms, schedules, supporting info. etc. attached to this form</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>

					<xsd:attribute name="referenceDocumentName" type="StringType" fixed="BinaryAttachment IRS8949" />
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name="IRS1120ScheduleDType">
		<xsd:annotation>
			<xsd:documentation>Content model for Form 1120 Schedule D</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>

			<!-- ===== Part I - Short-Term Capital Gains and Losses - Assets Held One Year or Less ===== -->

			<!-- Short-Term Totals from Form 8949 with box A Checked in Part I -->
			<xsd:element name="TotalSTCGL1099BShowsBasisGrp" type="CapitalGainAndLossType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Short-term totals from Form 8949 with box A checked in Part I</Description>
						<LineNumber>Schedule D Line 1</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>	

			<!-- Short-Term Totals from Form 8949 with box B Checked in Part I -->
			<xsd:element name="TotalSTCGL1099BNotShowBasisGrp" type="CapitalGainAndLossType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Short-term totals from Form 8949 with box B checked in Part I</Description>
						<LineNumber>Schedule D Line 2</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>		

			<!-- Short-Term Totals from Form 8949 with box C Checked in Part I -->
			<xsd:element name="TotalSTCGL1099BNotReceivedGrp" type="CapitalGainAndLossType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Short-term totals from Form 8949 with box C checked in Part I</Description>
						<LineNumber>Schedule D Line 3</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>			

			<!-- Short-Term Gain from Installment Sales -->
			<xsd:element name="ShortTermGainInstalSales" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Short-term gain from installment sales from Form 6252, line 26 or 37</Description>
						<LineNumber>Schedule D Part I Line 4(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Short Term Gain or Loss from Like-Kind Exchanges -->
			<xsd:element name="ShortTermGainLossFromLikeKind" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Short-term gain or (loss) from like-kind exchanges from Form 8824</Description>
						<LineNumber>Schedule D Part I Line 5(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Unused Loss Carryover -->
			<xsd:element name="UnusedLossCarryover" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Unused loss carryover</Description>
						<LineNumber>Schedule D Part I Line 6(j)</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="UnusedCapitalLossCarryoverSchedule" />
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>

			<!-- Net Short Term Capital Gain or Loss -->
			<xsd:element name="NetShortTermCapitalGainLoss" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Net short-term capital gain or (loss)</Description>
						<LineNumber>Schedule D Part I Line 7(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- ===== Part II - Long-Term Capital Gains and Losses - Assets Held More Than One Year ===== -->

			<!-- Long-Term Total from Form 8949 with box A Checked in Part II -->
			<xsd:element name="TotaLTCGL1099BShowsBasisGrp" type="CapitalGainAndLossType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Long-term total from Form 8949 with box A checked in Part II</Description>
						<LineNumber>Schedule D Line 8</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>			

			<!-- Long-Term Total from Form 8949 with box B Checked in Part II -->
			<xsd:element name="TotalLTCGL1099BNotShowBasisGrp" type="CapitalGainAndLossType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Long-term total from Form 8949 with box B checked in Part II</Description>
						<LineNumber>Schedule D Line 9</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>			

			<!-- Long-Term Total from Form 8949 with box C Checked in Part II -->
			<xsd:element name="TotaLTCGL1099BNotReceivedGrp" type="CapitalGainAndLossType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Long-term total from Form 8949 with box C checked in Part II</Description>
						<LineNumber>Schedule D Line 10</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>			

			<!-- Gain from Form 4797 -->
			<xsd:element name="GainFromForm4797" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Gain from Form 4797, line 7 or 9</Description>
						<LineNumber>Schedule D Part II Line 11(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Long-Term Gain from Installment Sales -->
			<xsd:element name="LongTermGainInstalSales" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Long-term gain from installment sales from Form 6252, line 26 or 37</Description>
						<LineNumber>Schedule D Part II Line 12(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Long-Term Gain or Loss from Like-Kind Exchanges -->
			<xsd:element name="LongTermGainLossFromLikeKind" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Long-term gain or (loss) from like-kind exchanges from Form 8824</Description>
						<LineNumber>Schedule D Part II Line 13(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Capital Gain Distributions -->
			<xsd:element name="CapitalGainDistributions" type="USAmountNNType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Capital gain distributions</Description>
						<LineNumber>Schedule D Part II Line 14(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Net Long-Term Capital Gain or Loss -->
			<xsd:element name="NetLongTermCapitalGainLoss" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Net long-term capital gain or (loss)</Description>
						<LineNumber>Schedule D Part II Line 15(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- ===== Part III - Summary of Parts I and II ===== -->

			<!-- Excess of Net Short-Term Capital Gain to Long-Term Capital Loss -->
			<xsd:element name="ExcessNetSTGainOverNetLTLoss" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Excess of net short-term capital gain (line 7) over net long-term capital loss (line 15)</Description>
						<LineNumber>Schedule D Part III Line 16(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Net Capital Gain (Excess of Net Long Term Gain to Short Term Loss) -->
			<xsd:element name="NetCapitalGain" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Net capital gain. Enter excess of net long-term capital gain (line 5) over net short-term capital loss (line 7)</Description>
						<LineNumber>Schedule D Part III Line 17(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Capital Gain Net Income -->
			<xsd:element name="CapitalGainNetIncome" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Capital gain net income - add lines 16 and 17</Description>
						<LineNumber>Schedule D Part III Line 18(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>


	<!-- ============================================================================================ -->
	<!-- ============= Type for Repeating Tables Rows in Part I Lines 1, 2 and 3 (Short-Term) ======= -->
	<!-- ============= and Part II Line 8, 9, and 10 (Long-Term)                              ======= -->
	<!-- ============================================================================================ -->


	<xsd:complexType name="CapitalGainAndLossType">
	
		<xsd:sequence>

			<!-- Total Sales Price -->
			<xsd:element name="TotalSalesPrice" type="USAmountNNType">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total sales price</Description>
						<LineNumber>Schedule D Line 1(f), 2(f), 3(f), 8(f), 9(f) and 10(f)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total cost or other basis -->
			<xsd:element name="TotalCostOrOtherBasis" type="USAmountNNType">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total cost or other basis</Description>
						<LineNumber>Schedule D Line 1(g), 2(g), 3(g), 8(g), 9(g) and 10(g)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Adjustments to Gain or Loss -->
			<xsd:element name="TotAdjustmentsToGainOrLossAmt" type="USAmountType">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total adjustments to gain or loss</Description>
						<LineNumber>Schedule D Line 1(i), 2(i), 3(i), 8(i), 9(i) and 10(i)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Gain Or Loss Amts -->
			<xsd:element name="TotalGainOrLossAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total Gain Or Loss Amt</Description>
						<LineNumber>Schedule D Line 1(j), 2(j), 3(j), 8(j), 9(j) and 10(j)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
	
		</xsd:sequence>

	</xsd:complexType>


</xsd:schema>
