<?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 Income Tax Schema - Cost Of Goods Sold Schedule</Description>
			<TaxYear>2012</TaxYear>
			<MaturityLevel>Draft Release</MaturityLevel>
			<ReleaseDate>September 5, 2012</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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

	<!-- ===================================== -->
	<!-- ==== Cost Of Goods Sold Schedule ==== -->
	<!-- ===================================== -->

	<xsd:element name="CostOfGoodsSoldSchedule">
		<xsd:annotation>
			<xsd:documentation>Cost of goods sold schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="CostOfGoodsSoldScheduleType">
					<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="CostOfGoodsSoldSchedule">
						<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="CostOfGoodsSoldScheduleType">
		<xsd:annotation>
			<xsd:documentation>Content model for cost of goods sold schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

			<!-- Cost Of Goods Sold Info -->
			<xsd:element name="CostOfGoodsSoldInfo" type="CostOfGoodsSoldInfoType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Cost of goods sold info</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

	<xsd:complexType name="CostOfGoodsSoldInfoType">
		<xsd:annotation>
			<xsd:documentation>Content model for Cost of goods sold info</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

			<!-- Cost Of Goods Sold Item -->
			<xsd:element name="CostOfGoodsSoldItem" type="LineExplanationType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Cost of goods sold item</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Income Loss Per Income Statement (optional) -->
			<xsd:element name="IncomeOrLossPerIncomeStmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Income loss per income statement (optional)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Temporary Differences -->
			<xsd:element name="TemporaryDifferences" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Temporary differences</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Permanent Differences -->
			<xsd:element name="PermanentDifferences" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Permanent differences</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Other Permanent Differences for Allocations to Non-ECI and ECI -->
			<xsd:element name="OtherPermanentDifferences" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Other permanent differences for allocations to Non-ECI and ECI</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Income Or Loss Per Return -->
			<xsd:element name="IncomeOrLossPerReturn" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Income or loss per return</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

</xsd:schema>
