Im creating a Flash quiz using external XML data.
For example, 5 items and the user has to select the correct ones.
The answer is inside the XML, and looks like this:
<respcondition id = "Correct">
<condition>
<varequal>A</varequal>
<not>
<varequal>B</varequal>
</not>
<not>
<varequal>C</varequal>
</not>
<varequal>D</varequal>
<varequal>E</varequal>
</condition>
<feedback id = "Correct"/>
</respcondition>
<respcondition id = "Incorrect">
<condition>
<not>
<and>
<varequal>A</varequal>
<not>
<varequal>B</varequal>
</not>
<not>
<varequal>C</varequal>
</not>
<varequal>D</varequal>
<varequal>E</varequal>
</and>
</not>
</condition>
<feedback id = "Incorrect"/>
</respcondition>
The problem is: how can i translate the condition node structure into an expression that Flash will be able to read?