Help with quiz in XML

So I am trying (key word trying) to develop a quiz using XML…I want to bring the questions and answers in via XML…but am having trouble doing it. I want the XML to be like this:

<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?>
<question text=“What type of pen tip do you like to write with?”>
<answer1>Fountain Tip</answer1>
<answer2>Rounded Tip</answer2>
<answer3>Square Tip</answer3>
<answer3>Felt Tip</answer3>
<question text=“What type of pen color do you like?”>
<question text=“What is your favorite pen style?”>

function parse(sucess) {
if (sucess) {
root = this.firstChild;
question = root.firstChild;
questions = [];
answers = [];
for (i=1; i < root.length; i++; ) {
questions* = question.attributes.text;
answers* = question.childNodes[0].firstChild;
} else {
trace(“Loading Failed…”);

xmlText = new XML();
xmlText.ignoreWhite = true;
xmlText.onLoad = parse;

When I publish…I get undefined and it doesn’t all work. all I want to do is to be able to bring in all outside information and use it appropriately…anyone ever do something like this before? A quiz with multiple choice answers that are clickable?