<?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 Corporate Income Tax Schema - Names and Addresses of Persons Paying Rent and Other Compensation Statement</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>September 5, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- =================================================================================== -->
	<!-- === Names and Addresses of Persons Paying Rent and Other Compensation Statement === -->
	<!-- =================================================================================== -->


	<xsd:element name="NamesAddrRentPayersOthCompStmt">
		<xsd:annotation>
			<xsd:documentation>Names and Addresses of Persons Paying Rent and Other Compensation Statement</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="NamesAddrRentPayersOthCompStmtType">
					<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="NamesAddrPersonsPayingRentAndOtherCompStmt">
						<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="NamesAddrRentPayersOthCompStmtType">
		<xsd:annotation>
			<xsd:documentation>Content model for Names and Addresses of Persons Paying Rent and Other Compensation Statement</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<!-- Repeating for each Property and Person Paying Rent and Other Compensation -->
			<xsd:element name="PropertyAndPersonPayingRentGrp" type="PropertyAndPersonPayingRentGrpType" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="PropertyAndPersonPayingRentGrpType">
		<xsd:annotation>
			<xsd:documentation>Content model for a property and person</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>

			<!-- Property Description -->
			<xsd:element name="PropertyDesc" type="LineExplanationType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Property description</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Person's Name -->
			<xsd:element name="PersonNm" type="PersonNameType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Person's name</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Choice: Person's US or Foreign Address -->
			<xsd:choice minOccurs="0">
			
				<!-- Person's US Address -->
				<xsd:element name="USAddress" type="USAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Person's US address</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				
				<!-- Person's Foreign Address -->
				<xsd:element name="ForeignAddress" type="ForeignAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Person's foreign address</Description>
						</xsd:documentation>
					</xsd:annotation>	
				</xsd:element>
				
			</xsd:choice>		

		</xsd:sequence>

	</xsd:complexType>

</xsd:schema>
