hi all again
still working on a sort system in flash, i am fiddling around in xpath
yet, i stumble on an issue
lets say my xml is :
<xml>
<item client ="tolkien" id="1" work="whatever"etc etc </item>
<item client ="tolkien" id="1" work="whatever"etc etc </item>
<item client ="kirupa" id="2" work="whatever"etc etc </item>
</xml>
as you can see, i have 2 items for tolkien(which are responsible for 2 different works), 1 for kirupa (only 1 job)
now i want to show a list for al the clients, tough, i only want to show up
1 unique identity for every client
so in this case the output would be
found clients :
tolkien
kirupa
here is how i sort the clients with the mighty xpath
still itβs outputwould be
tolkien
tolkien
kirupa
path = "/xml/item[@client]";
client_array = mx.xpath.XPathAPI.selectNodeList(this.firstChild, path);
i hope this is , thanx in advance if anyone could help me out