<?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 - Evidence of a Previously Filed Claim for Biodiesel Sold or Used Statement</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 17, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ===================================================================================================== -->
	<!-- ============  Evidence of a Previously Filed Claim for Biodiesel Sold or Used Statement  ============ -->
	<!-- ===================================================================================================== -->


	<xsd:element name="EvdncofPrevFldClmBiodieselStmt">
		<xsd:annotation>
			<xsd:documentation>Evidence of a previously filed claim for biodiesel sold or used statement</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="EvdncofPrevFldClmBiodieselStmtType">
					<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="EvidencePreviouslyFiledClaimForBiodieselSoldorUsedStatement">
						<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="EvdncofPrevFldClmBiodieselStmtType">
		<xsd:annotation>
			<xsd:documentation>Content model for evidence of a previously filed claim for biodiesel sold or used statement</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>		
				
			<!-- Certificate for Biodiesel -->
			<xsd:element name="BiodieselCertTyp" type="CertificateforBiodieselType" minOccurs="0" maxOccurs="unbounded">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Certificate for biodiesel</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
		</xsd:sequence>
	</xsd:complexType>		

	<!-- Type for Repeating Group - Certificate for Biodiesel -->
	<xsd:complexType name="CertificateforBiodieselType">
		<xsd:sequence>		
		
			<!-- Certificate Identification Number -->
			<xsd:element name="CertificateIdentificationNum" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Certificate identification number</Description>
					</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="TextType">
						<xsd:maxLength value="25"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>	
			
			<!-- Total Gallons of Agri-Biodiesel -->
			<xsd:element name="TotalGallonsofAgriBiodieselQty" type="FuelGallonsType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total gallons of agri-biodiesel</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Total Gallons Claimed on Schedule 3 (Form 8849) -->
			<xsd:element name="TotalGallonsClmSch3Frm8849Qty" type="FuelGallonsType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total gallons claimed on Schedule 3 (Form 8849)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Total Gallons Claimed on Schedule C (Form 720) -->
			<xsd:element name="TotalGallonsClmSchCFrm720Qty" type="FuelGallonsType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total gallons claimed on Schedule C (Form 720)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Total Gallons Claimed on Form 4136 -->
			<xsd:element name="TotalGallonsClaimedForm4136Qty" type="FuelGallonsType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total gallons claimed on Form 4136</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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