turbodizik has asked for the wisdom of the Perl Monks concerning the following question:
<?xml version="1.0" encoding="UTF-8"?> <config> <log> <destination>e1@mail.de</destination> <destination>e2@mail.de</destination> <destination>e3@mail.de</destination> </log> <item> <id>0</id> <filename>file1</filename> <extension>txt</extension> </item> <item> <id>1</id> <filename>file2</filename> <extension>txt</extension> </item> </config>
___________________Type of argument to keys on reference must be unblessed hashref or arr +ayref at test.pl line 13.
use XML::Simple qw(:strict); $config = XMLin('config.xml', KeyAttr => { server => 'name' }, ForceAr +ray => [ 'server', 'address' ]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with counting the nodes in a hash created by XML::Simple from a XML file.
by Corion (Patriarch) on Jul 18, 2013 at 12:45 UTC | |
by hdb (Monsignor) on Jul 18, 2013 at 12:53 UTC | |
by turbodizik (Initiate) on Jul 18, 2013 at 13:41 UTC | |
|
Re: Problem with counting the nodes in a hash created by XML::Simple from a XML file.
by Lotus1 (Vicar) on Jul 18, 2013 at 13:09 UTC | |
|
Re: Problem with counting the nodes in a hash created by XML::Simple (use XML::Rules, Data::Diver )
by Anonymous Monk on Jul 18, 2013 at 13:22 UTC |