<?xml version="1.0" encoding="UTF-8"?>

<!-- 

XML Schema Definition: EVVM Client Preferences
    version - 1.0
    date    - 15 Sep 2015
	
FILE INFORMATION
	
  OMA Permanent Document
     File: OMA-SUP-XSD_EVVM_CP-V1_0-20150915-A
     Type: Text - Schema Description
	
  Public Reachable Information
     Path: http://www.openmobilealliance.org/tech/profiles
     Name: evvm-cp-v1_0.xsd
	
NORMATIVE INFORMATION
	
  Information about this file can be found in the specification
	
     OMA-TS-EVVM_XDM-V1_0
	
  This is available at http://www.openmobilealliance.org/
	
  Send comments to technical-comments@mail.openmobilealliance.org
	
CHANGE HISTORY

15092015 Status changed to Approved by TP, TP Ref # OMA-TP-2015-0145-INP_EVVM_V1_0_ERP_for_final_Approval
	
LEGAL DISCLAIMER

	Use of this document is subject to all of the terms and conditions
	of the Use Agreement located at
	http://www.openmobilealliance.org/UseAgreement.html,
	provided, however, that section (d) under "Documents - Terms 
	of Use" which states, "no modifications are made to such 
	Documents" does not apply to your use.

	The Open Mobile Alliance authorizes you to copy this document, 
	provided that you retain all copyright and other proprietary	
	notices contained in the original materials on any copies of the 
	materials and	that you comply strictly with these terms. This 
	copyright permission does not constitute an endorsement of the 
	products or services. The Open Mobile Alliance assumes no 
	responsibility for errors or omissions in this document.


	Each Open Mobile Alliance member has agreed to use reasonable
	endeavors to inform the Open Mobile Alliance in a timely manner of
	Essential IPR as it becomes aware that the Essential IPR is related
	to the prepared or published specification.	However, the members
	do not have an obligation to conduct IPR searches.	The declared
	Essential IPR is publicly available to members and non-members of
	the Open Mobile Alliance and may be found on the "OMA IPR
	Declarations" list at http://www.openmobilealliance.org/ipr.html.
	The Open Mobile Alliance has not conducted an independent IPR review
	of this document and the information contained herein, and makes no
	representations or warranties regarding third party IPR, including
	without limitation patents, copyrights or trade secret rights.	This
	document may contain inventions for which you must obtain licenses
	from third parties before making, using or selling the inventions.
	Defined terms above are set forth in the schedule to the Open Mobile
	Alliance Application Form.

	NO REPRESENTATIONS OR WARRANTIES (WHETHER EXPRESS OR IMPLIED) ARE
	MADE BY THE OPEN MOBILE ALLIANCE OR ANY OPEN MOBILE ALLIANCE MEMBER
	OR ITS AFFILIATES REGARDING ANY OF THE IPR'S REPRESENTED ON THE "OMA
	IPR DECLARATIONS" LIST, INCLUDING, BUT NOT LIMITED TO THE ACCURACY,
	COMPLETENESS, VALIDITY OR RELEVANCE OF THE INFORMATION OR WHETHER OR
	NOT SUCH RIGHTS ARE ESSENTIAL OR NON-ESSENTIAL.

	THE OPEN MOBILE ALLIANCE IS NOT LIABLE FOR AND HEREBY DISCLAIMS ANY
	DIRECT, INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR
	EXEMPLARY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF
	DOCUMENTS AND THE INFORMATION CONTAINED IN THE DOCUMENTS.

	Copyright 2015 Open Mobile Alliance Ltd.	All Rights Reserved.
	Used with the permission of the Open Mobile Alliance Ltd. under the
	terms set forth above.
-->
<xs:schema
	targetNamespace="urn:oma:xml:evvm:clientprefs"
	xmlns="urn:oma:xml:evvm:clientprefs"
	xmlns:xml="http://www.w3.org/XML/1998/namespace"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified">
	<xs:element name="prefs">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="client"/>
				<xs:element ref="mediatypes"/>
				<xs:element ref="charsets"/>
				<xs:element ref="protocols"/>
				<xs:element ref="notifications"/>
				<xs:element ref="device"/>
				<xs:element ref="filterlargemedia"/>
				<xs:any minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="version" default="1.0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="1.0"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:anyAttribute/>
		</xs:complexType>
	</xs:element>
	<xs:element name="client">
		<xs:complexType>
			<xs:attribute name="type" use="required"/>
			<xs:anyAttribute/>
		</xs:complexType>
	</xs:element>
	<xs:element name="mediatypes">
		<xs:complexType>
			<xs:sequence>
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="mediatype"/>
			</xs:sequence>
			<xs:attribute name="supplementary" default="false">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="optional" default="false">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:anyAttribute/>
		</xs:complexType>
	</xs:element>
	<xs:element name="mediatype" type="xs:string"/>
	<xs:element name="charsets">
		<xs:complexType>
			<xs:sequence>
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="charset"/>
			</xs:sequence>
			<xs:attribute name="supplementary" default="false">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:anyAttribute/>
		</xs:complexType>
	</xs:element>
	<xs:element name="charset" type="xs:string"/>
	<xs:element name="protocols">
		<xs:complexType>
			<xs:sequence>
				<xs:element maxOccurs="unbounded" ref="protocol"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="protocol">
		<xs:complexType>
			<xs:attribute name="id" default="OMA-EVVM">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="OMTP-VVM"/>
						<xs:enumeration value="OMA-EVVM"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="version" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="notifications">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="encryptions"/>
				<xs:any minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="encrypt" default="ifneeded">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="always"/>
						<xs:enumeration value="ifneeded"/>
						<xs:enumeration value="never"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="deac" default="true">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="pref" default="true">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="sync" default="true">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="tran" default="true">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:anyAttribute/>
		</xs:complexType>
	</xs:element>
	<xs:element name="encryptions">
		<xs:complexType>
			<xs:sequence>
				<xs:element maxOccurs="unbounded" ref="encryption"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="encryption">
		<xs:complexType>
			<xs:sequence>
				<xs:choice>
					<xs:element ref="publickey"/>
					<xs:element ref="sharedsecret"/>
				</xs:choice>
				<xs:any minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="index" use="required"/>
			<xs:attribute name="type" use="required"/>
			<xs:attribute name="strength" use="required"/>
			<xs:anyAttribute/>
		</xs:complexType>
	</xs:element>
	<xs:element name="publickey" type="xs:string"/>
	<xs:element name="sharedsecret" type="xs:string"/>
	<xs:element name="device">
		<xs:complexType>
			<xs:attribute name="type" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="filterlargemedia">
		<xs:complexType>
			<xs:sequence>
				<xs:element minOccurs="0" name="largerthan" type="xs:integer"/>
			</xs:sequence>
			<xs:attribute name="active" default="false">
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
