NAME
Marketplace::Rakuten::Utils
DESCRIPTION
Common routines for the Marketplace::Rakuten classes.
EXPORTS
None. You have to call the full name of the functions, e.g.
Marketplace::Rakuten::Utils::turn_empty_hashrefs_into_empty_strings($data)
FUNCTIONS
turn_empty_hashrefs_into_empty_strings
The module used for the XML parsing, XML::LibXML::Simple, doesn't ignore empty tags, but instead return an empty hashref. With this function (which doesn't recurse for deeper structures), the hashref passed as argument will be modified to consider and empty hashref as an empty string.