TEXT question

Text questions are directly mapped onto <xforms:input> elements. Default values are directly written into the XForms instance data. The length attribute is encoded in the XSchema declaration.

QUESTION "Text question"

LEN (16)

DFT "dft"

ANSWER text_variable

<xsd:schema targetNamespace="http://example.info/types">
<xsd:simpleType name="question0">
<xsd:restriction base="string" />
<xsd:length value='16' />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
<xforms:instance>
<response xmlns="">
<question0>dft</question0>
</response>
</xforms:instance>
<xforms:bind nodeset="question0" id="question0" type="type:question0" />
<itp:question>
<xforms:input ref="question0">
<xforms:label>Text question</xforms:label>
</xforms:input>
</itp:question>