<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema targetNamespace="http://www.irs.gov/efile" xmlns="http://www.irs.gov/efile" xmlns:efile="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 - Return schema for 1120F return</Description>
			<TaxYear>2012</TaxYear>
			<MaturityLevel>Draft Release</MaturityLevel>
			<ReleaseDate>September 5, 2012</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

	<xsd:include schemaLocation="../Common/ReturnHeader1120x.xsd"/>
	<xsd:include schemaLocation="ReturnData1120F.xsd"/>
	
	<!-- Corporate Return - 1120F -->
	<xsd:element name="Return">
		<xsd:annotation>
			<xsd:documentation>1120F Return - wraps around Return Header and Return Data</xsd:documentation>
		</xsd:annotation>

		<xsd:complexType>

			<xsd:sequence>
				<xsd:element name="ReturnHeader" type="ReturnHeaderType"/>
				<xsd:element ref="ReturnData"/>
			</xsd:sequence>
	
			<!-- Return Version -->
			<xsd:attribute name="returnVersion" type="StringType" use="required" fixed="2012v1.1" >
				<xsd:annotation>
					<xsd:documentation>Return Version</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>

		</xsd:complexType>
	
		<!-- Uniqueness constraint for 'documentId' attribute of return documents -->
		<xsd:unique name="documentId">
			<xsd:selector xpath="efile:ReturnData/efile:*"/>
			<xsd:field xpath="@documentId"/>
		</xsd:unique>
	
		<!-- Uniqueness constraint for Binary Attachment -->
		<xsd:unique name="BinaryAttachment">
			<xsd:selector xpath="efile:ReturnData/efile:BinaryAttachment"/>
			<xsd:field xpath="efile:AttachmentLocation"/>
		</xsd:unique>
	
	</xsd:element>

</xsd:schema>
