Subject: | Does simplify work? |
Date: | Mon, 25 Feb 2019 09:37:48 +0530 |
To: | bug-XML-Twig [...] rt.cpan.org |
From: | Ganesh Udupa <udupa.ug [...] gmail.com> |
Hi all,
I am migrating an existing code written in XML:Simple to XML::Twig. However
the hash structure returned by Twig is not the same. Can someone tell me if
there is something wrong in the way I am using Twig?
my $twig = XML::Twig->new();
$twig->parsefile("xyz.xml');
$packagedata = $twig->simplify(forcearray => ['file'], keyattr => [
'md5sum']);
The above code is returning an array of file elements instead of hash with
key as md5sum. Also, I found that, even if I pass some other argument
(instead of forcearray) it wont throw any error.