xmlResponse

Edwin Miguel Triana Arlindo Flavio da Conceicao

XML Response Specification

In Maritaca, a Response is a XML representation of a responses set form questionnaire.

It contains the Questionnaire identification, the Response Identifaction and a list of valid responses. This page describes the XML representation for the generated Response using a Maritaca client (Ex. Android).

XML Form Example

<!--?xml version="1.0" encoding="UTF-8"? -->
<!-- XML Answer Example for Maritaca Project -->

<!-- example of answer -->
<datacollected>
    <formId>0000-13313-214124</formId>
    <userId>2255-14413-214166</userId>
    <answers>
        <answer timestamp="201204011831000000">
            <question id="0" type="barcode" subtype="EAN-13">
                <value>434894</value>
            </question>
            <question id="1" type="number">
                <value>21</value>
            </question>
            <question id="2" type="text">
                <value>String1</value>
            </question>
        </answer>
        <answer timestamp="201205013831000001">
            <question id="0" type="barcode" subtype="QR">
                <value>60514</value>
            </question>
            <question id="1" type="number">
                <value>19</value>
            </question>
            <question id="2" type="text">
                <value>Answer to question three</value>
            </question>
        </answer>
    </answers>
</datacollected>

Related

Wiki: Home

MongoDB Logo MongoDB