First of all thank you Harish.
I got the output as suggested. Say for example I had few more child elements under value tag, can I use foreach and extract the elements/sub-elements into a hash/array?
Could you give me any sample code to put the contents of $hash_when_cat_eq_special in an hash?
Thanks.