The <response> element

The <xforms:instance> element describes the result <response> XML structure that is submitted with the answers to the form.

This structure contains entries for all the questions in the form with their default values. Also, it contains additional information that is used by KCM to track the order of the responses and state of elements in the form.

Processing applications always copy this structure and replace the values that are changed by the user. The additional elements with internal values as used by KCM are copied verbatim. The application is aware of and able to handle new values introduced in future versions of KCM.

Structure

<response
	xmlns=""
>
	( <questionN/> )*
	( <expandedN/> )*
	( <recordsetN>
		( <questionX/> )*
	  </recordsetN> )*
	<ITP-interact-step/>
	<ITP-interact-count/>
	<ITP-interact-ID/>
</response>

Element

Element Description
<questionN> This element contains the value of the Nth question. Note that TEXTBLOCK elements on the form are counted as questions but do not have a representation in the <response> element.
<expandedN> This element contains the state of the Nth group on the form. If its value is TRUE the group is shown expanded. Otherwise the group is shown collapsed.

Clients can update this field in the response to remember the state of the groups when the response was submitted. If the form is shown again the states are remembered.

<recordsetN> This element contains <questionsX> elements for the questions in the Nth recordset.
<ITP-interact-step> Identifies the occurrence of this specific form during the execution of the model.

This element should be copied verbatim from the XForms instance into the response structure.

<ITP-interact-count> Identifies the form during the execution of the model.

This element should be copied verbatim from the XForms instance into the response structure.

<ITP-interact-ID> Identifies the form.

This element should be copied verbatim from the XForms instance into the response structure.