<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="viaBatch.xsd" xmlns="viaBatch.xsd" xmlns:VIA="http://hul.harvard.edu/ois/xml/xsd/via/newvia.xsd"  xmlns:VA="http://hul.harvard.edu/ois/xml/xsd/via/VIAAuthority.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!-- 2004/04/14:  First draft (RKW)-->
	<!-- 2004/05/11: Added recordType element 
		(RKW) -->
	<!-- 2004/05/13:
		1.	Changed VIA records from wrapped "any" to imported "ref"
		(RKW)-->
		<xs:import namespace="http://hul.harvard.edu/ois/xml/xsd/via/newvia.xsd" schemaLocation="http://hul.harvard.edu/ois/xml/xsd/via/newvia.xsd"/>
		<xs:import namespace="http://hul.harvard.edu/ois/xml/xsd/via/VIAAuthority.xsd" schemaLocation="http://hul.harvard.edu/ois/xml/xsd/via/VIAAuthority.xsd"/>
	<xs:element name="viaBatch">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="header"/>
				<xs:choice>
					<xs:element ref="VIA:viaRecord" minOccurs="0" maxOccurs="unbounded"/>
					<xs:element name="deleteRecordId" type="xs:string" maxOccurs="unbounded"/>
					<xs:element ref="VA:VIAAuthority" minOccurs="0" maxOccurs="unbounded"/>
				</xs:choice>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="header">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="batchType">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="add"/>
							<xs:enumeration value="delete"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="recordType">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="viaRecord"/>
							<xs:enumeration value="VIAAuthority"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="emailAddress" type="xs:string"/>
				<xs:element name="contributor">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="HUAM"/>
							<xs:enumeration value="OLIVIA"/>
							<xs:enumeration value="Peabody"/>
							<xs:enumeration value="Schlesinger"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="batchDate" type="xs:date"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>