in reply to XML::Simple - Make arrays out of class attribute
that produces something like:my $xmldata = XMLin($filename, KeyAttr => [ ]);
which you can easily transform to the datastructure of your preference$VAR1 = { 'div' => [ { 'content' => 'data1', 'class' => 'A' }, { 'content' => 'data2', 'class' => 'A' }, { 'content' => 'data1', 'class' => 'B' }, { 'content' => 'data2', 'class' => 'B' } ] };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Simple - Make arrays out of class attribute
by mscharrer (Hermit) on Sep 15, 2008 at 15:58 UTC | |
by ikegami (Patriarch) on Sep 15, 2008 at 18:58 UTC | |
by mtths (Initiate) on Sep 16, 2008 at 08:09 UTC | |
by ikegami (Patriarch) on Sep 16, 2008 at 08:12 UTC |