Draft Form 8871 XML Schema

Date: 2003-04-05. From: http://www.irs.gov/pub/irs-schema/8871schema.zip



<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.irs.gov/eforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.irs.gov/eforms" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<xsd:annotation>
		<xsd:documentation>
			<xsd:Author>Brett DiPerna</xsd:Author>
			<xsd:Version>Version 1.1</xsd:Version>
		</xsd:documentation>
	</xsd:annotation>
	<xsd:include schemaLocation="887xefileTypes.xsd"/>
	<xsd:element name="form8871">
		<xsd:annotation>
			<xsd:documentation>
				<xsd:description>Root element for the 8871 Form</xsd:description>
				<xsd:LineNumber>Root Element</xsd:LineNumber>
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="OrganizationName" final="restriction">
					<xsd:simpleType>
						<xsd:annotation>
							<xsd:documentation>
								<xsd:description>Name of Organization</xsd:description>
							</xsd:documentation>
						</xsd:annotation>
						<xsd:restriction base="xsd:string">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="70"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="MailingAddress" type="USAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>The Organization's Mailing Address</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="FilingType">
					<xsd:complexType>
						<xsd:choice>
							<xsd:annotation>
								<xsd:documentation>
									<xsd:description>The type of report:  Inital, Amended, or Final </xsd:description>
								</xsd:documentation>
							</xsd:annotation>
							<xsd:element name="InitalReport" minOccurs="0">
								<xsd:simpleType>
									<xsd:restriction base="xsd:int">
										<xsd:totalDigits value="1"/>
										<xsd:minInclusive value="0"/>
										<xsd:maxInclusive value="1"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="AmendedReport" minOccurs="0">
								<xsd:simpleType>
									<xsd:restriction base="xsd:int">
										<xsd:totalDigits value="1"/>
										<xsd:minInclusive value="0"/>
										<xsd:maxInclusive value="1"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="FinalReport" minOccurs="0">
								<xsd:simpleType>
									<xsd:restriction base="xsd:int">
										<xsd:totalDigits value="1"/>
										<xsd:minInclusive value="0"/>
										<xsd:maxInclusive value="1"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
						</xsd:choice>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="DateEstablished">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>The date the Organization was established</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="DateType">
							<xsd:length value="10"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="DateMaterialChange" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>The date of the material change happened</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="DateType">
							<xsd:length value="10"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="eMail" final="restriction" minOccurs="0">
					<xsd:simpleType>
						<xsd:restriction base="EmailAddressType">
							<xsd:maxLength value="150"/>
							<xsd:minLength value="7"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="CustodianName">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>The Custodian's Name</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="xsd:string">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="50"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="CustodianAddress" type="USAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>The Custodian's Address</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ContactPerson">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>Name of Contact Person</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="StringType">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="50"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="ContactAddress" type="USAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>The Contact Person's Address</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="BusinessAddress" type="USAddressType">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>Business Address of the Organization</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="EAIN" minOccurs="0" maxOccurs="52">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="EAINState">
								<xsd:simpleType>
									<xsd:restriction base="EAINStateType">
										<xsd:length value="2"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="EAIN" type="EAINType"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="OrganizationExempt8872" minOccurs="0">
					<xsd:complexType>
						<xsd:all>
							<xsd:element name="ExemptionState" type="StateType"/>
						</xsd:all>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="OrganizationExempt990" type="CheckboxTypeString">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>Is this organization claiming exemption from filing Form 990 (or 990-EZ), Return of Organization Exempt from Income Tax, as a caucus or association of state or local officials?</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="OrganizationPurpose">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>Describe the purpose of the organization</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="StringType">
							<xsd:minLength value="1"/>
							<xsd:maxLength value="512"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>
				<xsd:element name="RelatedEntities" minOccurs="0" maxOccurs="unbounded">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="RelatedEntities">
								<xsd:annotation>
									<xsd:documentation>
										<xsd:description>Name of Related Entities</xsd:description>
									</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="StringType">
										<xsd:maxLength value="50"/>
										<xsd:minLength value="1"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="Relationship">
								<xsd:annotation>
									<xsd:documentation>
										<xsd:description>Drop down list that either has "Connected, "Affiliated"</xsd:description>
									</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="StringType">
										<xsd:enumeration value="Connected"/>
										<xsd:enumeration value="Affiliated"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="EntityAddress" type="USAddressType"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
				<xsd:element name="Officers" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>
							<xsd:description>List of All Officers, Directors, and Highly Compensated Employees</xsd:description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="Name">
								<xsd:simpleType>
									<xsd:restriction base="StringType">
										<xsd:minLength value="1"/>
										<xsd:maxLength value="50"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="Title">
								<xsd:simpleType>
									<xsd:restriction base="StringType">
										<xsd:minLength value="1"/>
										<xsd:maxLength value="50"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="Address" type="USAddressType"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>