Loading multiple images from XML and store in an Array

Good evening to all.

First of all, I’m registered for like, forever on Kirupa, but I can’t remember introducing myself.
So, here I go:
I’m Gertjan from The Netherlands. I’m a designer/junior developer (in training) @ Studio Stomp in Amsterdam. And that’s about it :rambo:
So… hi!

Then the ‘important’ stuff:

I’m in the middle of my vacation and I decided to build my personal portfolio site.
The main experience will be in Papervision3D, I’ll asume you all know what is ;). But that part is going fine.

Of course all the content will be in an external source, in my case: content.xml.
The problem I walked into, and what is totally drives me crazy is the following:

I want to load the images from the ‘image’ node from the ‘project’ node.
This is what a ‘project’ node looks like (this is 1 project, ofcourse content.xml has more projects):


<project id="001" client="specsavers" type="web" role="design" url="http://www.korting-op-bril-of-lenzen-per-zorgverzekeraar.nl/">
            <image>images/work/web/specsavers01_01.jpg</image>
            <image>images/work/web/specsavers01_02.jpg</image>
</project>

I want to preload the images from the xml and store them in an Array. All the other properties will also be dropped in that Array. Then I’ll push this Array in an projectsArray so I can easily transfer this Array to different classes and extract what i need from them without loading every asset. In this way every entry in projectsArray is a project. (correct me if there’s a better way, I’m learning here! ;)).

But, I can’t get it to work! I tried several ways but none of them worked like I wanted to.
Ofcourse I allready googled, but I can’t find the right instructions for my problem.

If anyone is willing to help me with this, or just refer to a page where I can find my solution…
I would be so thankfull.

Sincerly yours,

Gertjan

[SIZE=“1”](oh by the way… i did allready sort of introduced myself couple of years ago :slight_smile: click)[/SIZE]