Struggling with xml nodes

Hello,
First: I am new to OpenFL and Haxe.
I have imported a XML in my code.
This is my XML Code:
image

and this is my Main class:
image

Now I want to

  1. Display the content from the first node (image “0.png” and text “Welcome”) .
  2. Wait that the user clicks on a sprite.
  3. Display the content of the next node.
  4. Wait that the user clicks on a sprite.

Thanks for all answers!

add inner loop through attributes

for (page in intro.nodes.page)
{
   for (attr in page.attributes())
   {
     var attValue = page.get(attr);
   }
}

Thanks for your answer, but it always gives me an exception.
image

intro.nodes.page is an array, you can do

var n:Int = 0;

function show():Void
{
trace(intro.nodes.page[n].att.text);
trace(intro.nodes.page[n].att.image);
}

function onClick(…):Void
{
n++;
show();
}