I'm trying to make a quiz game where the list of questions is easily replaceable. To do this, I made a list of questions and formatted it in an xml document, but I don't know how to make it display. The document looks like this:
<body>
<question id="1">
<heading>In what month did the Mars Curiosity rover land?</heading>
<correct></correct>
<incorrect></incorrect>
<answer id="1">March</answer>
<answer id="2">May</answer>
<answer id="3">August</answer>
<answer id="4">September</answer>
</question>
<question id="2">
<heading>What was the chance against the success of the Mars Curiosity rover?</heading>
<correct></correct>
<incorrect></incorrect>
<answer id="1">10%</answer>
<answer id="2">20%</answer>
<answer id="3">30%</answer>
<answer id="4">40%</answer>
</question>
</body>
On the start of the layout, I have AJAX request "questions.xml", then On "Questions" completed, I have XML Load XML document from string "AJAX.LastData" and then I Set Text to Questions.StringValue("/body/question[id=1]/heading/").
Unfortunately, nothing displays, but I know AJAX.Progress is 1.
I'm sure I'm not referencing the XML correctly; does anyone know the correct way to do this?