<?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 - Section 199 Closing of Books Election Statement</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>September 5, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ========================================================================== -->
	<!-- ============ Section 199 Closing of Books Election Statement ============= -->
	<!-- ========================================================================== -->


	<xsd:element name="Sect199ClosingBooksElectStmt">
		<xsd:annotation>
			<xsd:documentation>Section 199 Closing of Books Election Statement</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="Sect199ClosingBooksElectStmtType">
					<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="Section199ClosingOfBooksElectionStatement">
						<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="Sect199ClosingBooksElectStmtType">
		<xsd:annotation>
			<xsd:documentation>Content model for Section 199 Closing of Books Election Statement</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

			<xsd:element name="Sect199ClosingBooksElectGrp" minOccurs="0" maxOccurs="unbounded">
				<xsd:complexType>
					<xsd:sequence>


						<!-- Section 199 Begining Text -->
						<xsd:element name="Section199BeginingTxt">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Section 199 begining text</Description>
								</xsd:documentation>
							</xsd:annotation>
							<xsd:simpleType>
								<xsd:restriction base="StringType">
									<xsd:enumeration value="The section 199 closing of the books election is hereby made with respect to:"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>

						<!-- Name of Corporation -->
						<xsd:element name="CorporationNm" type="BusinessNameLine1Type" minOccurs="0">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Name of corporation</Description>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

						<!--  EIN -->
						<xsd:element name="EIN" type="EINType">
							<xsd:annotation>
								<xsd:documentation>
									<Description>EIN</Description>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

						<!-- Response Period Text -->
						<xsd:element name="ResponsePeriodTxt">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Response period text</Description>
								</xsd:documentation>
							</xsd:annotation>
							<xsd:simpleType>
								<xsd:restriction base="StringType">
									<xsd:enumeration value="with response to the following periods"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>

						<!-- Date From -->
						<xsd:element name="EffectiveBeginDt" type="DateType">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Date from</Description>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

						<!-- Date To -->
						<xsd:element name="EffectiveEndDt" type="DateType">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Date to</Description>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

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

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

</xsd:schema>
