I'm trying to convert a hash to a XML-string with this module XML::Hash::LX but I get only the first hash-key. Can someone tell me, how to get the whole hash?
#!/usr/bin/env perl
use warnings;
use 5.012;
use XML::Hash::LX;
my $hash = { one => 1, two => 2, three => 3, four => 4 };
my $str = hash2xml( $hash );
print $str;
# Output:
# <?xml version="1.0" encoding="utf-8"?>
# <three>3</three>