XML Datatype for list of child resource references Source: Sungchan Choi, Yong-Suk Park, Jaeho Kim (KETI) Data: PRO Introducing_DataType_for_List_of_Child-Resource-Ref
Scenario AECSE Request for contentInstance list retrieval Response including contentInstance list We can use Result Content parameter for a request message. But, in response message how can it be represented using xml data type for list of resources (-references) ?
TS-0001 Result Content: Indicates what are the expected components of the result of the requested operation. 1.attribute+child-resource-references –For example, if the request is to retrieve a resource, the resource and the address(es) of the child-resource(s) are provided. 2.child-resource-references –For example, if the request is to retrieve a resource, only the address(es) of the child-resource(s) is provided.
Case 1: attribute+child-resource-references Response message XML Example <m2m:container xmlns:m2m=" xmlns:xsi=" 3 /IN-CSE/APP01/CONT01 /IN-CSE/APP T10:23: T10:25: T10:23:21 label1 label2 0 //IN-CSEID.m2m.org/ /IN-CSEID/APP01/CONT01/instance1 /IN-CSEID/APP01/CONT01/instance2 DataType=m2m:childResourceRef
Case 2: child-resource-references Response message XML Example <m2m:listOfChildResourceRef name=CONT01 type=3 xmlns:m2m=" xmlns:xsi=" /IN-CSEID/APP01/CONT01/instance1 /IN-CSEID/APP01/CONT01/instance2 <m2m:container xmlns:m2m=" xmlns:xsi=" /IN-CSEID/APP01/CONT01/instance1 /IN-CSEID/APP01/CONT01/instance2 Container resource type needs mandatory attribute for container If not, XSD validation error occurs E.g., resource type, resource ID, parent ID,.. Define new XML type only having a list of child-resource-references