in reply to Re^3: Converting boolean values in XMLout
in thread Converting boolean values in XMLout

The exact code for perl to take into consideration multiple routes to the same node so that rmap_ref need not be called multiple times would be

rmap_ref { $_[0]{seen} = {}; $_ = "$_" if JSON::is_bool($_) } $result;