Need help please with listing xml category (AS2)

Hello,
I’m desperate to combine with this coding flash, i have search in web but nothing found that I’m looking for.

So, the part of my thinking is i wanna related the list nodes with every each category.

The main idea is like this…
see the pic

[CENTER][LEFT]

if i click each of item the result it will be like this pic…

so the categories will appear as expected, also with the others.

then for the previous and next buttons will also lead on the clicked item or also based on their ID.

Is it the xml file like this one?

<?xml version=“1.0” ?>
<listing>
<list_name>
<category>category 1</category>
<id>0</id>
<item_name>item 1</item_name>
<item_images>images1.jpg</item_images>
<item_description>description 1</item_description>
</list_name>
<list_name>
<category>category 1</category>
<id>1</id>
<item_name>item 2</item_name>
<item_images>images2.jpg</item_images>
<item_description>description 2</item_description>
</list_name>
<list_name>
<category>category 2</category>
<id>2</id>
<item_name>item 1</item_name>
<item_images>images1.jpg</item_images>
<item_description>description 1</item_description>
</list_name>
<list_name>
<category>category 2</category>
<id>3</id>
<item_name>item 2</item_name>
<item_images>images2.jpg</item_images>
<item_description>description 2</item_description>
</list_name>
</listing>
or should i do like this

<?xml version=“1.0” ?>
<listing>
<list_name>
<category>category 1</category>
<load_category_xml>category_1.xml</load_category_xml>
</list_name>
<list_name>
<category>category 2</category>
<load_category_xml>category_2.xml</load_category_xml>
</list_name>
<list_name>
<category>category 3</category>
<load_category_xml>category_3.xml</load_category_xml>
</list_name>
</listing>
i’m very confused with the script for load xml and placing the right syntax

It will be nice if anyone could help me and any help would be appreciated!

Thanks
[/LEFT]
[/CENTER]