If I understood what you want, you can try XML::Simple, but I'm not sure if it does exactly what you want (maybe you need to play with the ValueAttr option a bit).
Comment on Re: XML & hashes...Need to know which xml parser could handle this
thank you...i'll try...maybe i need to reorganize my hash into another hash using some kindof hask key auto creation...maybe anyone can tell me something.. :)