<?xml version="1.0" encoding="UTF-8"?>
<!--
FILE INFORMATION

Description
   This schema provices the device information schema for the DS enabler

Version: 2.0  (2.0.0)
Date:    11 Dec 2008

OMA Permanent Document
   File: OMA-SUP-XSD_DS_DevInf_Schema-V2_0-20081211-D
   Type: Text

Public Reachable Information
   Path: http://www.openmobilealliance.org/tech/profiles
   Name: DS_DevInf_Schema-v2_0.xsd

NORMATIVE INFORMATION

Information about this file can be found in the latest revision of the specification
OMA-TS-DS_DevInf-V2_0 available at
   http://www.openmobilealliance.org/

Send comments to technical-comments@mail.openmobilealliance.org
	
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

You may use this document or any part of the document for internal
or educational purposes only, provided you do not modify, edit or
take out of context the information in this document in any manner.
Information contained in this document may be used, at your sole
risk, for any purposes.

You may not use this document in any other manner without the prior
written permission of the Open Mobile Alliance.  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 2008 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="CTCap" type="CTCapType"/>
	<xs:element name="CTType" type="xs:string"/>
	<xs:element name="DataStore" type="DataStoreType"/>
	<xs:element name="DataType" type="xs:string"/>
	<xs:element name="DevCap" type="DevCapType"/>
	<xs:element name="DevID" type="xs:string"/>
	<xs:element name="DevInf" type="DevInfType">
		<xs:annotation>
			<xs:documentation>Root</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="DevType" type="xs:string"/>
	<xs:attribute name="DisplayName" type="xs:string"/>
	<xs:element name="DSMem" type="DSMemType"/>
	<xs:element name="Ext" type="ExtType"/>
	<xs:element name="ExtURI" type="xs:anyURI"/>
	<xs:attribute name="FieldLevel" type="xs:boolean" default="false"/>
	<xs:element name="Filter-Rx" type="RxTxType"/>
	<xs:element name="FilterCap" type="FilterCapType"/>
	<xs:element name="FilterKeyword" type="xs:string"/>
	<xs:attribute name="FPUnique" type="xs:boolean" default="true"/>
	<xs:element name="FwV" type="xs:string"/>
	<xs:element name="HwV" type="xs:string"/>
	<xs:element name="Man" type="xs:string"/>
	<xs:attribute name="MaxGUIDSize" type="xs:unsignedInt"/>
	<xs:attribute name="MaxID" type="xs:unsignedInt"/>
	<xs:attribute name="MaxMem" type="xs:unsignedLong"/>
	<xs:element name="MaxOccur" type="xs:unsignedInt"/>
	<xs:element name="MaxSize" type="MaxSizeType"/>
	<xs:complexType name="MaxSizeType">
		<xs:simpleContent>
			<xs:extension base="xs:unsignedInt">
				<xs:attribute ref="Truncate" use="optional"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
	<xs:attribute name="MaxStoredAnchors" type="xs:unsignedInt"/>
	<xs:element name="Model" type="xs:string"/>
	<xs:attribute name="Truncate" type="xs:boolean" default="true"/>
	<xs:element name="OEM" type="xs:string"/>
	<xs:attribute name="ParamName" type="xs:string"/>
	<xs:element name="Property" type="PropertyType"/>
	<xs:element name="PropInfo" type="PropInfoType"/>
	<xs:element name="PropName" type="xs:string"/>
	<xs:element name="PropParam" type="PropParamType"/>
	<xs:element name="Rx" type="RxTxType"/>
	<xs:element name="Rx-Pref" type="RxTxType"/>
	<xs:element name="RxTx-CT" type="RxTxCTType"/>
	<xs:attribute name="SharedMem" type="xs:boolean" default="false"/>
	<xs:element name="SourceRef" type="xs:string"/>
	<xs:element name="StoredAnchors" type="StoredAnchorsType"/>
	<xs:complexType name="StoredAnchorsType">
		<xs:sequence>
			<xs:element ref="ValidAnchor" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute ref="MaxStoredAnchors"/>
	</xs:complexType>
	<xs:attribute name="SupportHierarchicalSync" type="xs:boolean" default="false"/>
	<xs:attribute name="SupportLargeObjs" type="xs:boolean" default="true"/>
	<xs:attribute name="SupportNumberOfChanges" type="xs:boolean" default="true"/>
	<xs:attribute name="SupportEncryption" type="xs:boolean" default="false"/>
	<xs:attribute name="SupportFieldLevel" type="xs:boolean" default="false"/>
	<xs:attribute name="SupportSftDel" type="xs:boolean" default="false"/>
	<xs:attribute name="SupportAtomic" type="xs:boolean" default="false"/>
	<xs:attribute name="SupportSequence" type="xs:boolean" default="false"/>
	<xs:element name="SwV" type="xs:string"/>
	<xs:element name="SyncCap" type="SyncCapType"/>
	<xs:element name="Tx" type="RxTxType"/>
	<xs:element name="Tx-Pref" type="RxTxType"/>
	<xs:attribute name="UTC" type="xs:boolean" default="false"/>
	<xs:element name="ValEnum" type="xs:string"/>
	<xs:element name="ValidAnchor" type="AnchorType"/>
	<xs:simpleType name="AnchorType">
		<xs:union memberTypes="xs:dateTime xs:positiveInteger"/>
	</xs:simpleType>
	<xs:element name="VerCT" type="xs:string"/>
	<xs:attribute name="Version" type="xs:string"/>
	<xs:element name="XName" type="xs:string"/>
	<xs:element name="XValue" type="xs:string"/>
	<xs:complexType name="CTCapType">
		<xs:sequence>
			<xs:element ref="CTType"/>
			<xs:element ref="VerCT"/>
			<xs:element ref="Property" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute ref="FieldLevel" use="optional"/>
	</xs:complexType>
	<xs:complexType name="DataStoreType">
		<xs:sequence>
			<xs:element ref="SourceRef"/>
			<xs:element ref="RxTx-CT"/>
			<xs:element ref="CTCap" maxOccurs="unbounded"/>
			<xs:element ref="SyncCap"/>
			<xs:element ref="DSMem" minOccurs="0"/>
			<xs:element ref="Filter-Rx" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="FilterCap" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute ref="DisplayName" use="optional"/>
		<xs:attribute ref="MaxGUIDSize" use="optional"/>
	</xs:complexType>
	<xs:complexType name="DevCapType">
		<xs:sequence>
			<xs:element ref="Man"/>
			<xs:element ref="Model"/>
			<xs:element ref="OEM" minOccurs="0"/>
			<xs:element ref="FwV"/>
			<xs:element ref="SwV"/>
			<xs:element ref="HwV"/>
			<xs:element ref="DevID"/>
			<xs:element ref="DevType"/>
		</xs:sequence>
		<xs:attribute ref="SupportAtomic" use="optional"/>
		<xs:attribute ref="SupportEncryption" use="optional"/>
		<xs:attribute ref="SupportFieldLevel" use="optional"/>
		<xs:attribute ref="SupportLargeObjs" use="optional"/>
		<xs:attribute ref="SupportNumberOfChanges" use="optional"/>
		<xs:attribute ref="SupportSftDel" use="optional"/>
		<xs:attribute ref="SupportSequence" use="optional"/>
		<xs:attribute ref="UTC" use="optional"/>
	</xs:complexType>
	<xs:complexType name="DevInfType">
		<xs:sequence>
			<xs:element ref="ExtURI" minOccurs="0"/>
			<xs:element ref="DevCap"/>
			<xs:element ref="DataStore" maxOccurs="unbounded"/>
			<xs:element ref="Ext" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute ref="Version" use="required"/>
	</xs:complexType>
	<xs:complexType name="DSMemType">
		<xs:attribute ref="SharedMem" use="optional"/>
		<xs:attribute ref="MaxMem" use="optional"/>
		<xs:attribute ref="MaxID" use="optional"/>
	</xs:complexType>
	<xs:complexType name="ExtType">
		<xs:sequence>
			<xs:element ref="XName"/>
			<xs:element ref="XValue" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="FilterCapType">
		<xs:sequence>
			<xs:element ref="CTType"/>
			<xs:element ref="VerCT"/>
			<xs:element ref="FilterKeyword" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="PropName" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PropertyType">
		<xs:sequence>
			<xs:element ref="PropName"/>
			<xs:element ref="PropInfo" minOccurs="0"/>
			<xs:element ref="PropParam" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="ValEnum" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PropInfoType">
		<xs:sequence>
			<xs:element ref="DataType" minOccurs="0"/>
			<xs:element ref="MaxOccur" minOccurs="0"/>
			<xs:element ref="MaxSize" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute ref="DisplayName" use="optional"/>
	</xs:complexType>
	<xs:complexType name="PropParamType">
		<xs:sequence>
			<xs:element ref="DataType" minOccurs="0"/>
			<xs:element ref="ValEnum" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute ref="DisplayName" use="optional"/>
		<xs:attribute ref="ParamName" use="optional"/>
	</xs:complexType>
	<xs:complexType name="RxTxCTType">
		<xs:sequence>
			<xs:element ref="Rx-Pref"/>
			<xs:element ref="Rx" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="Tx-Pref"/>
			<xs:element ref="Tx" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RxTxType">
		<xs:sequence>
			<xs:element ref="CTType"/>
			<xs:element ref="VerCT"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SyncCapType">
		<xs:sequence>
			<xs:element ref="StoredAnchors" minOccurs="0"/>
		</xs:sequence>
		<xs:attribute ref="FPUnique" use="optional"/>
		<xs:attribute ref="SupportHierarchicalSync" use="optional"/>
	</xs:complexType>
</xs:schema>
