reading xml-file and processing with jquery

reading xml-file and processing with jquery

Hello,
I'm still kinda new with jquery, but here's my problem.

I got this xml-file named --> slider-content.php
In this xml-file, I get for projects with there data out of a database and is put into the xml-file.

What I now want, is that every project is placed within another array variable.

I got this far:
  1. function processXML(xml)
    {
        $(xml).find('project').each(function()
        {
            arrayVariable = [$(this).find('id').text(),
                                      $(this).find('titel').text(),
                                      $(this).find('type').text(),
                                      $(this).find('betrokkenheid').text(),
                                      $(this).find('afbeelding').text(),
                                      $(this).find('url').text()
                                      ];
        });
    }











So what should happen is that the first project in the xml-file is placed in array1.
The second project in array2.
The third project in array3.
And the forth project in array4.

Everything works, except this part, because I don't know how to do it.

Hope you guys can help me.
Thanks in advance,
Mark