in reply to
XML::Simple => XMLout()
The XML wasn't valid, so I made a change at the start. Change
<opt> to <opt/>. <opt> results in a premature end of data. Next, you'll need to use:
my $config = XMLin($foo, KeyAttr => 1, ForceArray => 1);
ForceArray by itself isn't enough. Here's what I got:
#!/usr/bin/perl
use strict;
use warnings;
use XML::Simple qw(:strict);
my $foo = '/root/Desktop/log.xml';
my $config = XMLin($foo, KeyAttr => 1, ForceArray => 1);
use Data::Dumper::Concise;
print Dumper($config);