Subject: | fromHash throws error on undefined values in tree |
XML-Mini-1.2.8
Perl Version 5.8.3
==
use strict;
use warnings;
use XML::Mini::Document;
my $log = {
log => {
status => 'start',
jobresult => undef,
msg => 'Starting a Job',
},
};
my $xmini = XML::Mini::Document->new();
print $xmini->fromHash($log);
===
This leads to error: XML::Mini Error MESSAGE:XML::Mini::Document::extractSTRING No value passed!
I think that jobresult => undef should lead to an empty value in XML like <jobresult />. jobresult => "" works well!