elml:answer

The element answer allows defining one or several answers (one or more correct answers depending on the question type selected) to the question posed.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
correct elml:YesNoType required
The required attribute correct allows defining if an answer is the correct one (yes) or if it is a wrong answer designed to trick the student (no).
feedback xs:string optional
The optional attribute feedback allows to give the student a short text feedback about his wrong (or correct) choice of answer. It might also contain a hint as to where in the lesson the student might find the correct answer for the question.

Used By

Source

<xs:element name="answer">
  <xs:annotation>
    <xs:documentation>The element answer allows defining one or several answers (one or more correct answers depending on the question type selected) to the question posed.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="elml:AnswerType">
        <xs:attributeGroup ref="elml:AnswersReq"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample