I have the following XML: shops.php (dynamic generated xml from mysql)
<shops>
<shop name="shop1">
<items>
<item name="item1"/>
<item name="item2"/>
</items>
</shop>
<shop name="shop2">
<items>
<item name="item1"/>
</items>
</shop>
</shops>

How can I create two datagrid, one respone to shop, and one response to item?
and when I click on the cells in the "shop" datagrid, the item datagrid could
change to correspone to shop?

(And is there anyway i could pass on the changes to php and therefore edit
mysql database?)

I could really appreciate any help.

Thanks.