# XML quiz problem

**URL:** <https://forum.kirupa.com/t/xml-quiz-problem/75036>\
**Category:** flash\
**Created:** [January 5, 2005, 1:40pm UTC](https://forum.kirupa.com/t/xml-quiz-problem/75036 "2005-01-05T13:40:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@claudio](https://forum.kirupa.com/u/claudio)\
**Post date:** [January 5, 2005, 1:40pm UTC](https://forum.kirupa.com/t/xml-quiz-problem/75036/1 "2005-01-05T13:40:43Z")

</div>

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:

```auto
<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?
