<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.irs.gov/efile" targetNamespace="http://www.irs.gov/efile" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<xsd:annotation>
		<xsd:documentation>
			<Description>IRS e-file Schema - Opening and Closing Goods Comparison Statement</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 17, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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

	<!-- =========================================================================================== -->
	<!-- ===============  Opening and Closing Goods Comparison Statement  ========================== -->
	<!-- =========================================================================================== -->

	<xsd:element name="OpngAndClsGoodsComparisonStmt">
		<xsd:annotation>
			<xsd:documentation>Opening and Closing Goods Comparison Statement</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="OpngAndClsGoodsComparisonStmtType">
					<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="OpngAndClsGoodsComparisonStmt">
						<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="OpngAndClsGoodsComparisonStmtType">
		<xsd:annotation>
			<xsd:documentation>Opening and Closing Goods Comparison Statement</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

      		<!-- Type/Category -->
      		<xsd:element name="TypeCategoryUsedGrp" type="TypeCategoryUsedGrpType" minOccurs="0" maxOccurs="unbounded">
        		<xsd:annotation>
          			<xsd:documentation>
            			<Description>Type Category Used</Description>
          			</xsd:documentation>
        		</xsd:annotation>
      		</xsd:element>
    	</xsd:sequence>
  	</xsd:complexType>

	  <!-- Type for Repeating Group - Type/Category Used -->
  	<xsd:complexType name="TypeCategoryUsedGrpType">
    	<xsd:sequence>

      		<!-- Type/Category -->
      		<xsd:element name="CategoryTypeTxt" type="ShortDescriptionType" minOccurs="0">
        		<xsd:annotation>
          			<xsd:documentation>
            			<Description>Type/Category</Description>
          			</xsd:documentation>
        		</xsd:annotation>
      		</xsd:element>

      		<!-- Description -->
      		<xsd:element name="Desc" type="ShortDescriptionType" minOccurs="0">
        		<xsd:annotation>
          			<xsd:documentation>
            			<Description>Description</Description>
          			</xsd:documentation>
        		</xsd:annotation>
      		</xsd:element>

			<!-- Unit of Measure -->
			<xsd:element name="UnitOfMeasureDesc" type="ShortDescriptionType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Unit of Measure</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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