<?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 - IRS Form 1120S Schedule D</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>September 5, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ======================================================= -->
	<!-- ===============  IRS Form 1120S Schedule D ============ -->
	<!-- ======================================================= -->


	<xsd:element name="IRS1120SScheduleD">
		<xsd:annotation>
			<xsd:documentation>IRS Form 1120S Schedule D</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS1120SScheduleDType">
					<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="IRS1120SScheduleD">
						<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="IRS1120SScheduleDType">
		<xsd:annotation>
			<xsd:documentation>Content model for Form 1120S Schedule D</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>

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

			<xsd:element name="TotalSTCGL1099BBssRptNoAdjGrp" type="BasisRptNoAdjustments4Type" 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 from Form 6252 -->
			<xsd:element name="STCapGainInstalSlsAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Short-term capital gain from installment sales from Form 6252</Description>
						<LineNumber>Schedule D Line 4(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Short-Term Capital Gain or (Loss) from Like-Kind Exchanges from Form 8824 -->
			<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 Line 5(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Tax On Short-Term Capital Gain -->
			<xsd:element name="TaxOnShortTermCapitalGainAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Tax on short-term capital gain</Description>
						<LineNumber>Schedule D Line 6(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</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 Line 7(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

			<xsd:element name="TotalLTCGL1099BBssRptNoAdjGrp" type="BasisRptNoAdjustments4Type" 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>

			<!-- Long-Term Capital Gain from Installment Sales from Form 6252, Line 26 or 37 -Gain or Loss -->
			<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 -Gain or loss</Description>
						<LineNumber>Schedule D Line 11(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Long-Term Capital Gain or (Loss) from Like-Kind Exchanges from Form 8824 -->
			<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 Line 12(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 Line 13(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Tax On Long-Term Capital Gain -->
			<xsd:element name="TaxOnLongTermCapitalGainAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Tax on long-term capital gain included below</Description>
						<LineNumber>Schedule D 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 Line 15(h)</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Part III - Built-In Gains Tax -->

			<!-- Excess of Recognized Built-In Gains Over Recognized Built-In Losses -->
			<xsd:element name="BuiltInGainsOverLossesAmt" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Excess of recognized built-in gains over recognized built-in losses</Description>
						<LineNumber>Schedule D Line 16</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="ExcessOfRecognizedBuiltInGainComputationAtt"/>
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>

			<!-- Built-In Gains Taxable Income -->
			<xsd:element name="BuiltInGainsTaxableIncomeAmt" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Built-in gains taxable income</Description>
						<LineNumber>Schedule D Line 17</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="TaxableIncomeComputationSchedule"/>
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>

			<!-- Net Recognized Built-In Gain -->
			<xsd:element name="NetRecognizedBuiltInGainAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Net recognized built-in gain</Description>
						<LineNumber>Schedule D Line 18</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Section 1374(b)(2) Deduction -->
			<xsd:element name="Section1374b2DeductionAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Section 174(b)(2) deduction</Description>
						<LineNumber>Schedule D Line 19</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Net Recognized Built-In Gain Less Section 1374(b)(2) Deduction -->
			<xsd:element name="NetBuiltInGainLessDeductionAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Subtract line 17 from line 16</Description>
						<LineNumber>Schedule D Line 20</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- 35% of Net Recognized Built-In Gain Less Section 1374(b)(2) Deduction -->
			<xsd:element name="NetBuiltInGainLessPctDedAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Enter 35% of line 18</Description>
						<LineNumber>Schedule D Line 21</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Business credit and minimum tax credit carryforwards -->
			<xsd:element name="BusinessAndMinimumTaxCrAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Business credit and minimum tax credit carryforwards under section 1374(b)(3) from C corporation years</Description>
						<LineNumber>Schedule D Line 22</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Built-in Gains Tax  -->
			<xsd:element name="BuiltInGainsTaxAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Built-in gains tax - Subtract line 20 from line 19</Description>
						<LineNumber>Schedule D Line 23</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

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

	<xsd:complexType name="BasisRptNoAdjustments4Type">

		<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 Amt -->
			<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 Amt -->
			<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>
