Annex B (normative):
The following text is a oneM2M template schema file for use when mapping LWM2M object definition files to oneM2M schema files. This template contains the oneM2M copyright notice, the schema namespace information, and the schema include sections that are common for all oneM2M resource schemas. Two XML element sections are reserved for resource specific mappings to interwork LWM2M object definition files to oneM2M mgmtObj resource schemas. These sections represent the oneM2M resource specific attributes and the corresponding announced resources, respectively.
This template contains placeholder oneM2M schema version (i.e. vX_Y_Z) and date information (i.e. (c) 20XX). Based on the targeted version of oneM2M schemas for a given deployment, this placeholder version and date shall be updated to reflect the version of published oneM2M schemas that a schema file is compatible with. The template also contains a placeholder for the XML schema targetNamespace that may be configured with a customized namespace to avoid namespace conflicts if/when needed for a given deployment.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright Notification
The oneM2M Partners authorize 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, nor does it encompass the granting of any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document.
(c) 20XX, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC). All rights reserved.
Notice of Disclaimer & Limitation of Liability
The information provided in this document is directed solely to professionals who have the appropriate degree of experience to understand and interpret its contents in accordance with generally accepted engineering or other professional standards and applicable regulations. No recommendation as to products or vendors is made or should be implied.
NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, WITH RESPECT TO ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER.
-->
<xs:schema xmlns="http://www.w3.org/2001/XMLSchema-instance" targetNamespace=" <target_name_space>"
xmlns:m2m="http://www.onem2m.org/xml/protocols" elementFormDefault="unqualified"
attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="CDT-commonTypes-vX_Y_Z.xsd" />
<xs:include schemaLocation="CDT-subscription-vX_Y_Z.xsd" />
<xs:element name="<LWM2M_Object_Name>" substitutionGroup="m2m:sg_mgmtResource">
</xs:element>
<xs:element name="<LWM2M_Object_Name>Annc" substitutionGroup="m2m:sg_announcedMgmtResource">
</xs:element>
</xs:schema>