http://www.perlmonks.org?node_id=1002690


in reply to [Solved] Very simple XML::Simple problem

opts is the default root name, setting RootName to undefined should solve your issue.

my $xml = XMLout(\%xml_hash,  RootName   => undef);