<?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 Partnership Income Tax Schema - IRS Form 1065 Schedule B-1</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 17, 2018</ReleaseDate>
		</xsd:documentation>
	
	</xsd:annotation>
	
	<xsd:include schemaLocation="../../../Common/efileTypes.xsd"/>


	<!-- =============================================================== -->
	<!-- ==================  IRS Form 1065 Schedule B-1 ================== -->
	<!-- =============================================================== -->


	<xsd:element name="IRS1065ScheduleB1">
		<xsd:annotation>
			<xsd:documentation>IRS1065 Schedule B-1</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS1065ScheduleB1Type">
					<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="IRS1065ScheduleB1">
						<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="IRS1065ScheduleB1Type">
		<xsd:annotation>
			<xsd:documentation>Content model for Form 1065 Schedule B1</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

			<!-- Part 1 Entries Owning 50% or More of the Partnership (Form 1065, Schedule B, Question 3a) -->
			
			<!-- Partners Owning 50% or More of the Partnership group -->
   <xsd:element name="PartnersOwn50PctOrMoreGrp" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
     <xsd:sequence>
     
						<!-- Name of Entity -->
						<xsd:element name="EntityNm" type="BusinessNameLine1Type">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Name of Entity</Description>
									<LineNumber>Schedule B-1 Part I (i)</LineNumber>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

						<!-- Partner's Identification Number: choice between EIN or Missing SSN/EIN Reason (if any) -->
						<xsd:choice>
						<!-- Partner's EIN -->
							<xsd:element name="EIN" type="EINType">
								<xsd:annotation>
									<xsd:documentation>
										<Description>Partner EIN (if any)</Description>
										<LineNumber>Schedule B-1 Part I (ii)</LineNumber>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<!-- Missing SSN/EIN Reason -->				
							<xsd:element name="MissingEINReasonCd">
								<xsd:annotation>
									<xsd:documentation>
										<Description>Missing EIN Reason (if any)</Description>
										<LineNumber>Schedule B-1 Part I (ii)</LineNumber>
									</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="StringType">
										<xsd:enumeration value="APPLD FOR"/>
										<xsd:enumeration value="FOREIGNUS"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>			
						</xsd:choice>

			<!-- Type of Entity -->
						<xsd:element name="EntityTypeTxt" type="ShortExplanationType">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Type of Entity</Description>
									<LineNumber>Schedule B-1 Part I (iii)</LineNumber>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
			
							<!-- Country of Organization -->
						<xsd:element name="OrganizationCountryCd" type="AllCountriesType">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Country of Organization</Description>
									<LineNumber>Schedule B-1 Part I (iv)</LineNumber>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
			
			<!-- Maximum Percentage Owned in Profit, Loss, or Capital -->
						<xsd:element name="MaximumProfitLossOrCapOwnPct" type="LargeRatioType">
							<xsd:annotation>
								<xsd:documentation>								
									<Description>Maximum Percentage Owned in Profit, Loss, or Capital</Description>
									<LineNumber>Schedule B-1 Part I (V)</LineNumber>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			
			<!-- Part II, Information on Individuals or Estate Owning 50% or More of the Partnership -->
			
						<!-- Individuals or Estate Owning 50% or More of the Partnership group -->
			<xsd:element name="IndivOrEstOwn50PctOrMoreGrp" minOccurs="0" maxOccurs="unbounded">
			 <xsd:complexType>
			 	<xsd:sequence>
			     
						<!-- Name of Entity -->
						<xsd:element name="EntityNm" type="BusinessNameLine1Type">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Name of Entity</Description>
									<LineNumber>Schedule B-1 Part II (i)</LineNumber>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

						<!-- Identifying Number: choice between EIN or SSN or Missing SSN/EIN Reason -->
						<xsd:choice>
							<!-- Partner's EIN -->
							<xsd:element name="PartnerEIN" type="EINType">
								<xsd:annotation>
									<xsd:documentation>
										<Description>Partner EIN (if any)</Description>
										<LineNumber>Schedule B-1 Part II (ii)</LineNumber>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>
							<!-- Partner's SSN -->				
							<xsd:element name="PartnerSSN" type="SSNType">
								<xsd:annotation>
									<xsd:documentation>
										<Description>Partner SSN (if any)</Description>
										<LineNumber>Schedule B-1 Part II (ii)</LineNumber>
									</xsd:documentation>
								</xsd:annotation>
							</xsd:element>		
							<!-- Missing SSN/EIN Reason -->				
							<xsd:element name="MissingSSNEINReasonCd">
								<xsd:annotation>
									<xsd:documentation>
										<Description>Missing SSN-EIN Reason (if any)</Description>
										<LineNumber>Schedule B-1 Part II (ii)</LineNumber>
									</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="StringType">
										<xsd:enumeration value="APPLD FOR"/>
										<xsd:enumeration value="FOREIGNUS"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
													</xsd:choice>

						<!-- Country of Citizenship -->
						<xsd:element name="CitizenCountryCd" type="AllCountriesType">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Country of Citizenship</Description>
									<LineNumber>Schedule B-1 Part II (iii)</LineNumber>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

						<!-- Maximum Percentage Owned in Profit, Loss, or Capital -->
						<xsd:element name="MaximumProfitLossOrCapOwnPct" type="LargeRatioType">
							<xsd:annotation>
								<xsd:documentation>
									<Description>Maximum Percentage Owned in Profit, Loss, or Capital</Description>
									<LineNumber>Schedule B-1 Part II (IV)</LineNumber>
								</xsd:documentation>
							</xsd:annotation>
						</xsd:element>

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

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

</xsd:schema>
