<?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 Schema - Form 1120 Schedule D</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 15, 2019</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 ===== -->

			<xsd:element name="TotalSTCGL1099BBssRptNoAdjGrp" type="BasisRptNoAdjustments3Type" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<LineNumber>Schedule D Line 1a</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- 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 1b</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 Capital Gain from Installment Sales -->
			<xsd:element name="STCapGainInstalSlsAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Short-term capital gain from installment sales from Form 6252, line 26 or 37</Description>
						<LineNumber>Schedule D Part I Line 4(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

			<!-- Unused Capital Loss Carryover -->
			<xsd:element name="UnusedCapitalLossCarryoverAmt" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Unused capital loss carryover</Description>
						<LineNumber>Schedule D Part I Line 6(h)</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="NetSTCapitalGainOrLossAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Net short-term capital gain or (loss)</Description>
						<LineNumber>Schedule D Part I Line 7(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- ===== Part II - Long-Term Capital Gains and Losses ===== -->

			<xsd:element name="TotalLTCGL1099BBssRptNoAdjGrp" type="BasisRptNoAdjustments3Type" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<LineNumber>Schedule D Line 8a</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Long-Term Total from Form 8949 with box A Checked in Part II -->
			<xsd:element name="TotalLTCGL1099BShowsBasisGrp" 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 8b</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="TotalLTCGL1099BNotReceivedGrp" 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="Form4797GainOrLossAmt" 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(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

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

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

			<!-- Net Long-Term Capital Gain or Loss -->
			<xsd:element name="NetLTCapitalGainOrLossAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Net long-term capital gain or (loss)</Description>
						<LineNumber>Schedule D Part II Line 15(h)</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="ExcNetSTGainOverNetLTLossAmt" 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(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

			<!-- Capital Gain Net Income -->
			<xsd:element name="CapitalGainNetIncomeAmt" 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(h)</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="BasisRptNoAdjustments3Type">

		<xsd:sequence>

			<!-- Total Proceeds (Sales Price) From Form 1099-B -->
			<xsd:element name="TotalProceedsSalesPriceAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total proceeds (sales price) from Form 1099-B</Description>
						<LineNumber>Schedule D Line 1a(d)and 8a(d)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Cost (or Other Basis) -->
			<xsd:element name="TotalCostOrOtherBasisAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Cost (or other basis)</Description>
						<LineNumber>Schedule D Line 1a(e)and 8a(e)</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 1a(h) and 8a(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>


	<xsd:complexType name="CapitalGainAndLossType">

		<xsd:sequence>

			<!-- Total Proceeds (Sales Price) From Form 8949 -->
			<xsd:element name="TotalProceedsSalesPriceAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total proceeds (sales price) from Form 8949</Description>
						<LineNumber>Schedule D Line 1b(d), 2(d), 3(d), 8b(d), 9(d) and 10(d)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Cost or Other Basis -->
			<xsd:element name="TotalCostOrOtherBasisAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total cost or other basis</Description>
						<LineNumber>Schedule D Line 1b(e), 2(e), 3(e), 8b(e), 9(e) and 10(e)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Adjustments to Gain or Loss -->
			<xsd:element name="TotAdjustmentsToGainOrLossAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total adjustments to gain or loss</Description>
						<LineNumber>Schedule D Line 1b(g), 2(g), 3(g), 8b(g), 9(g) and 10(g)</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 1b(h), 2(h), 3(h), 8b(h), 9(h) and 10(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>


</xsd:schema>
