I need to extract data from xml file where some of them have same tag. Like and some atributes and I use function findvalue('./category'); and this loot took all of them and puts them in the array. I want that in single variable. How can I use some fuction where I can distinguish attributes in tags ?