<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by Tim Buchholz (Minnesota Judicial Branch) -->
<!--
 Copyright © 2007 by the State of Minnesota
	State Court Administrator’s Office
	All Rights Reserved
-->
<!--
	Modification History 
	Date					Version		Rev			Change
	01/08/2007		3:1				1				See the CourtXML 3 Change Log.doc for changes from version 2.0.0.
	02/02/2007		3:1				2				Add bond to request and reply.
	03/30/2007		3:1				3				Eliminated the use of restrictions of complex types.   This should not change any existing messages.
	05/25/2007		3:1				4				Added default value of false to Warrant, FinancialSummary and Bond SelectedIndicator elements.

-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.courts.state.mn.us/CourtXML/3" targetNamespace="http://www.courts.state.mn.us/CourtXML/3" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4">
	<xs:include schemaLocation="CourtXML_3_NoEnum.xsd"/>
	<xs:attributeGroup name="CaseGetMessageAttributes">
		<xs:attribute name="schemaVersion" type="xs:string" use="required" fixed="3:1">
			<xs:annotation>
				<xs:documentation>Specifies the version of the schema that this message should be validated against.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="messageProducedDateTime" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>Date and time when this message was produced.  This value is included on all outbound messages and not required on inbound messages.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:attributeGroup>
	<xs:complexType name="CaseOptionsType">
		<xs:all>
			<xs:element name="CourtCaseHeaderGroup" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="CourtCaseEvent" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="CasePartyRelation" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="Attorney" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="CaseProsecutor" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="SubjectParties" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include the specific party types based on the case type.  Criminal Adult includes CaseDefendant and CasePetitionerPlaintiff.  Juvenile "Criminal" includes ChildDelinquent or ChildNonDelinquent (depending on if it is a delinquency case or not), CasePetitionerPlaintiff, ParentGuardianCustodian.  Family CHIPS Truency, Runaway and Del under 10 include ChildNonDelinquent, CasePetitionerPlaintiff and ParentGuardianCustodian.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Options" minOccurs="0">
							<xs:complexType>
								<xs:all>
									<xs:element name="IncludeAttorneysIndicator" type="xs:boolean" default="false">
										<xs:annotation>
											<xs:documentation>If true include the full Attorney element within the RepresentedBy element.  If false or left as default only include reference id's.</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:all>
							</xs:complexType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="PartyToTheAction" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Options" minOccurs="0">
							<xs:complexType>
								<xs:all>
									<xs:element name="IncludeAttorneysIndicator" type="xs:boolean" default="false">
										<xs:annotation>
											<xs:documentation>If true include the full Attorney element within the RepresentedBy element.  If false or left as default only include reference id's.</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:all>
							</xs:complexType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="Victim" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="Witness" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="HearingTrialSetting" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="Charge" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Options" minOccurs="0">
							<xs:complexType>
								<xs:all>
									<xs:element name="IncludePriorVersionsIndicator" type="xs:boolean" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Include the charges prior versions.   If false or unspecified only a reference to prior versions will be included.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="IncludeDisposedIndicator" type="xs:boolean" default="false" minOccurs="0">
										<xs:annotation>
											<xs:documentation>Include charges that are disposed.  By default only charges without dispositions are included (ChargeDisposition/ChargeAdjudication should be used for disposed charges).</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:all>
							</xs:complexType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="ChargeDispositions" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include ChargeDisposition elements for adult and ChargeAdjudication elements for Juvenile.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Options" minOccurs="0">
							<xs:complexType>
								<xs:all>
									<xs:element name="IncludeAttorneysIndicator" minOccurs="0">
										<xs:annotation>
											<xs:documentation>This indicator controls whether the attorney or the attorney reference is included with that party.</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:all>
							</xs:complexType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="CourtDecisions" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include AdultSentence elements for adult and DelinquencyDisposition elements for Juvenile.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Options" minOccurs="0">
							<xs:complexType>
								<xs:all>
									<xs:element name="IncludePartiesIndicator" type="xs:boolean" default="false" minOccurs="0">
										<xs:annotation>
											<xs:documentation>If true include the full party specific  CourtXML Element for "Party" elements contained within.  If false or left as default only include reference id's.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="IncludeAttorneysIndicator" minOccurs="0">
										<xs:annotation>
											<xs:documentation>If you selected IncludeParties this indicator controls whether the attorney or the attorney reference is included with that party.</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:all>
							</xs:complexType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="InterimConditionsOrder" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Options" minOccurs="0">
							<xs:complexType>
								<xs:all>
									<xs:element name="IncludePartiesIndicator" type="xs:boolean" default="false" minOccurs="0">
										<xs:annotation>
											<xs:documentation>If true include the full party specific  CourtXML Element for "Party" elements contained within.  If false or left as default only include reference id's.</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:all>
							</xs:complexType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="JuvenileInterimPlacementOrder" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0">
							<xs:annotation>
								<xs:documentation>Include this element.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Options" minOccurs="0">
							<xs:complexType>
								<xs:all>
									<xs:element name="IncludePartiesIndicator" type="xs:boolean" default="false">
										<xs:annotation>
											<xs:documentation>If true include the full party specific  CourtXML Element for "Party" elements contained within.  If false or left as default only include reference id's.</xs:documentation>
										</xs:annotation>
									</xs:element>
									<xs:element name="IncludeAttorneysIndicator" minOccurs="0">
										<xs:annotation>
											<xs:documentation>If you selected IncludeParties this indicator controls whether the attorney or the attorney reference is included with that party.</xs:documentation>
										</xs:annotation>
									</xs:element>
								</xs:all>
							</xs:complexType>
						</xs:element>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="Warrant" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0"/>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="FinancialSummary" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0"/>
					</xs:all>
				</xs:complexType>
			</xs:element>
			<xs:element name="Bond" minOccurs="0">
				<xs:complexType>
					<xs:all>
						<xs:element name="SelectedIndicator" type="xs:boolean" default="false" minOccurs="0"/>
					</xs:all>
				</xs:complexType>
			</xs:element>
		</xs:all>
	</xs:complexType>
	<xs:complexType name="CaseInformation">
		<xs:annotation>
			<xs:documentation>Contains CourtXML global elements that have either been configured, or requested, to be included with this message.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="CourtCaseHeaderGroup" type="CourtCaseHeaderGroupType" minOccurs="0"/>
			<xs:element name="CourtCaseEvent" type="CourtCaseEventType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="CasePartyRelation" type="CasePartyRelationType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="Attorney" type="AttorneyType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="CaseProsecutor" type="AttorneyType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="PartyToTheAction" type="PartyToTheActionType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="SubjectParties" type="SubjectParties" minOccurs="0"/>
			<xs:element name="Victim" type="VictimType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="Witness" type="WitnessType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="HearingTrialSetting" type="HearingTrialSettingType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="Charge" type="ChargeExtendedType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="ChargeDispositions" minOccurs="0">
				<xs:complexType>
					<xs:choice>
						<xs:element name="ChargeDisposition" type="ChargeDispositionType" maxOccurs="unbounded"/>
						<xs:element name="ChargeAdjudication" type="ChargeAdjudicationType" maxOccurs="unbounded"/>
					</xs:choice>
				</xs:complexType>
			</xs:element>
			<xs:element name="CourtDecisions" minOccurs="0">
				<xs:complexType>
					<xs:choice>
						<xs:element name="AdultSentence" type="AdultSentenceType" maxOccurs="unbounded"/>
						<xs:element name="DelinquencyDisposition" type="DelinquencyDispositionType" maxOccurs="unbounded"/>
						<xs:element name="JuvenileJudgment" type="JuvenileJudgmentType" maxOccurs="unbounded"/>
					</xs:choice>
				</xs:complexType>
			</xs:element>
			<xs:element name="InterimConditionsOrder" type="InterimConditionsOrderType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="JuvenileInterimPlacementOrder" type="JuvenileInterimPlacementOrderType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="Warrant" type="WarrantOutType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="FinancialSummary" type="FinancialSummaryType" minOccurs="0"/>
			<xs:element name="Bond" type="BondOutType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SubjectParties">
		<xs:sequence>
			<xs:element name="CaseDefendant" type="CaseDefendantType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="ChildDelinquent" type="ChildDelinquentType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="ChildNonDelinquent" type="ChildNonDelinquentType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="ParentGuardianCustodian" type="ParentGuardianCustodianType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="CasePetitionerPlaintiff" type="CasePetitionerPlaintiffType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="CaseGetRequest">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Selection">
					<xs:annotation>
						<xs:documentation>Specify which case(s) to return</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:choice>
							<xs:element name="CourtFileNumber" type="CourtFileNumberType" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Select cases by court file number.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="WarrantNumber" type="WarrantNumberType" maxOccurs="unbounded"/>
						</xs:choice>
					</xs:complexType>
				</xs:element>
				<xs:element name="CaseOptions" type="CaseOptionsType">
					<xs:annotation>
						<xs:documentation>Specifies the content from the court case that is to be returned with the reply message.</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
			<xs:attributeGroup ref="CaseGetMessageAttributes"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="CaseGetReply">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="CaseRequest" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>One or more requests for case information can be made within a single request message.  For each request made the consumer will receive a Request node containing either the requested data or error information which prevented the return of the requested data.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:choice>
								<xs:annotation>
									<xs:documentation>Contains the identifier that was submitted with the request.</xs:documentation>
								</xs:annotation>
								<xs:element name="CourtFileNumber" type="CourtFileNumberType">
									<xs:annotation>
										<xs:documentation>Response for a requested case with this file number.  This will be formatted in the same manner that was submitted in the request.</xs:documentation>
									</xs:annotation>
								</xs:element>
								<xs:element name="WarrantNumber" type="WarrantNumberType">
									<xs:annotation>
										<xs:documentation>Response for requested case with this Warrant Number.  This will be formatted in the same manner that was submitted in the request.</xs:documentation>
									</xs:annotation>
								</xs:element>
							</xs:choice>
							<xs:element name="CaseInformation" type="CaseInformation" minOccurs="0"/>
							<xs:element name="CaseNullResponses" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Occurrence denotes that a Global Element requested did not return any instances.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="CourtXMLGlobalElement" type="xs:string" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation>Contains the Element Name of any Global Element subscribed to for which no data was found.</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="CaseRequestError" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>CaseRequestErrors may consist of permission or access violations or unknown case errors that apply to specific requests for cases.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="code" type="xs:int"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="caseNumberKey" type="xs:string" use="required">
							<xs:annotation>
								<xs:documentation>Contains the cases file number with all dashes removed.</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="caseKey" type="xs:positiveInteger">
							<xs:annotation>
								<xs:documentation>Numeric system identifier for case</xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attributeGroup ref="CaseGetMessageAttributes"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
