<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.irs.gov/efile" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.irs.gov/efile" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<xsd:annotation>
		<xsd:documentation>
			<Description>IRS e-file Schema - Form 8716</Description>
			<TaxYear>2012</TaxYear>
			<MaturityLevel>Draft Release</MaturityLevel>
			<ReleaseDate>September 5, 2012</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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

	<!-- ================================================================ -->
	<!-- =======================  IRS Form 8716 ============================ -->
	<!-- ================================================================ -->

	<xsd:element name="IRS8716">
		<xsd:annotation>
			<xsd:documentation>IRS Form 8716</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS8716Type">
					<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="IRS8716">
						<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="backupElectionIndicator" >
						<xsd:simpleType>
							<xsd:restriction base="StringType">
								<xsd:enumeration value="BACKUP ELECTION"/>
							</xsd:restriction>
						</xsd:simpleType>							
					</xsd:attribute>
					<xsd:attribute name="extension12MonthIndicator" >
						<xsd:simpleType>
							<xsd:restriction base="StringType">
								<xsd:enumeration value="FILED PURSUANT TO SECTION 301.9100-2"/>
							</xsd:restriction>
						</xsd:simpleType>							
					</xsd:attribute>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name="IRS8716Type">
		<xsd:annotation>
			<xsd:documentation>Content model for IRS Form 8716</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			
			<!-- Check Applicable Box to Show Type of Entity -->
			<xsd:choice  minOccurs="0">
				<!-- Partnership -->
				<xsd:element name="Partnership" type="CheckboxType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Partnership</Description>
								<LineNumber>1</LineNumber>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
	
				<!-- S-corporation (or C Corporation Electing To Be An S Corporation) -->
				<xsd:element name="SCorporation" type="CheckboxType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>S-corporation (or C corporation electing to be an S corporation)</Description>
								<LineNumber>1</LineNumber>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
	
				<!-- Personal Service Corporation(PSC) -->
				<xsd:element name="PersonalServiceCorporation" type="CheckboxType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Personal Service Corporation(PSC)</Description>
								<LineNumber>1</LineNumber>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:choice>
			
			<!-- Name (Person To Call for Information) -->
			<xsd:element name="NameOfPerson" type="PersonNameType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Name (Person to call for information)</Description>
							<LineNumber>2</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Telephone Number -->
			<xsd:element name="TelephoneNumber" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Telephone number</Description>
							<LineNumber>2</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="StringType">
						<xsd:pattern value="[0-9]{1,20}" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>

			<!-- Ending Date Of Last Filed Return -->
			<xsd:element name="EndingDateOfLastFiledReturn" type="DateType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Ending date of last filed return</Description>
							<LineNumber>3</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Ending Date Of Required Tax Year -->
			<xsd:element name="EndingDateOfRequiredTaxYear" type="MonthDayType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Ending date of required tax year</Description>
							<LineNumber>4</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Check Applicable Box and Enter the Ending Date of the First Tax year -->
			<xsd:choice  minOccurs="0">
				<!-- Adopting -->
				<xsd:element name="Adopting" type="CheckboxType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Adopting</Description>
								<LineNumber>5</LineNumber>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
	
				<!-- Retaining -->
				<xsd:element name="Retaining" type="CheckboxType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Retaining</Description>
								<LineNumber>5</LineNumber>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
	
				<!-- Changing To -->
				<xsd:element name="ChangingTo" type="CheckboxType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Changing to</Description>
								<LineNumber>5</LineNumber>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:choice>
			
			<!-- Effective Ending Date -->
			<xsd:element name="EffectiveEndingDate" type="DateType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Effective ending date</Description>
							<LineNumber>5</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
					
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
