<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
	 elementFormDefault = "qualified">
	<xsd:element name = "uploadDocuments">
		<xsd:complexType>
			<xsd:sequence>                                                  n
				<xsd:element ref = "uploadDocument" maxOccurs = "unbounded"/>
				<xsd:element ref = "summary" maxOccurs = "unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "deletion">
		<xsd:complexType>
			<xsd:choice minOccurs = "0" maxOccurs = "unbounded">
				<xsd:element ref = "deletion"/>
				<xsd:element ref = "document"/>
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "addition">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref = "document"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "attached">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref = "addition" minOccurs = "0" maxOccurs = "unbounded"/>
				<xsd:element ref = "summary"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "sub">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref = "addition" minOccurs = "0" maxOccurs = "unbounded"/>
				<xsd:element ref = "summary"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "original">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref = "addition"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "document">
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base = "xsd:string">
					<xsd:attribute name = "status" type = "xsd:string"/>
					<xsd:attribute name = "id" type = "xsd:string"/>
					<xsd:attribute name = "repo" type = "xsd:string"/>
					<xsd:attribute name = "base" type = "xsd:string"/>
					<xsd:attribute name = "app" type = "xsd:string"/>
					<xsd:attribute name = "mimetype" type = "xsd:string"/>
					<xsd:attribute name = "byte-length" type = "xsd:string"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "uploadDocument">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref = "deletion" minOccurs = "0"/>
				<xsd:element ref = "original" minOccurs = "0"/>
				<xsd:element ref = "attached" minOccurs = "0"/>
				<xsd:element ref = "sub" minOccurs = "0"/>
				<xsd:element ref = "addition"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name = "summary">
		<xsd:complexType>
			<xsd:simpleContent>
				<xsd:extension base = "xsd:string">
					<xsd:attribute name = "additions" type = "xsd:string"/>
					<xsd:attribute name = "failures" type = "xsd:string"/>
					<xsd:attribute name = "duration" type = "xsd:string"/>
				</xsd:extension>
			</xsd:simpleContent>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>