Answer XML Grammar

Following is described the global structure of the XML stream used as input in PUT .../parameters requests. This XML stream contains the actual answers to pass to contexts or prompts, and the query of a list of values for the parameters that remain to be answered.
<parameters>
    <parameter>
        <id>An identifier</id>
        <answer>
            <info>
                [LOV_Query|LOV]
            </info>
            Values
        </answer>
    </parameter>
    ...
</parameters>

LOV_Query defines the query used to retrieve a list of values for unanswered parameters. It is made of the following elements:

<lov hierarchical="true|false" partial="true|false" refreshable="true|false"> 
    <query intervalID="true|false" intervalSize="Integer" refresh="true|false"> 
        <sort="Ascending|Descending|None"/>
        <search>A search pattern</search>
        <path>  
            <value id="String" type="String|Date|Numeric">A value</value>
            ... 
        </path>
    </query> 
</lov>

The following table describes the <query> attributes:

<query> Attribute Description
intervalID If true, a predefined interval for the list of values to return is chosen.
intervalSize If intervalID is true, then it defines the number of values in the interval to return.
refresh Specifies if the list of values is refreshed.

The following <query> children describe the query:

<query> Child Element Description
<sort> Specifies if the list of values must be returned sorted or not.
<search> Defines a search pattern in the list of values as a string.
<path> In the case of a hierarchical parameter, it specifies the intermediate answer value. It also specifies the node for which the list of values is requested. This path is expressed as a sequence of <value> elements. Each value defines a value for a node.

The following table describes the <value> attributes:

<value> Attribute Description
id Mandatory if the value contains an answer to a context or if the prompt is index-aware. It defines the context identifier or the value index.
type The value type. Default is string.

LOV defines the possible values of the list of values. See its description in Lists of Values.

Values defines the actual values that answer to the parameter.

<values>
    <value id="String">A value</value>
    ...
</values>