isync has asked for the wisdom of the Perl Monks concerning the following question:
XML:Simple::XMLout with option "noattr => 1" renders:$VAR1 = { 'node' => [ { 'key1' => 'value1', 'key2' => 'value2', }, { 'key1' => 'value3', 'key2' => 'value4', }, ], };
BUT: When I do XML:Simple::XMLin with option "suppressempty => undef" Data:Dumper shows this:<root> <node> <key1>value1</key1> <key2>value2</key2> </node> <node> <key1>value3</key1> <key2>value4</key2> </node> </root>
WHY? And how can I get XML:Simple to properly slurp back in my LoH data-structure??$VAR1 = { 'node' => { 'value1' => { 'key2' => 'value2', }, 'value3' => { 'key4' => 'value4', }, }, };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple - repeated child elements does not give list of hashes
by davorg (Chancellor) on Mar 23, 2007 at 14:07 UTC | |
by isync (Hermit) on Mar 23, 2007 at 18:00 UTC | |
by Anonymous Monk on Mar 25, 2007 at 18:04 UTC | |
by isync (Hermit) on Mar 25, 2007 at 18:35 UTC |