Okay, that is very interesting, and it does give you more control, granted. but i want a more on-the-fly approach, which sauoq's solution grants me. i'm not saying you can't do that with XML::Rules of course (i'm sure you can), but his simple edit to my hashref manipulation was easy and ideal and I got to keep XML::Simple and its simple ways. thanks!