arcnon has asked for the wisdom of the Perl Monks concerning the following question:
note: the g hash of arrays has at least 1 element but can be more. In the current xml file output. It creates mutiple g's with 1 entry per g array item. Which when read back in produces a differant struture. This is the options I am using to produce the file.my %t_type = ( ... 'b' => { a => {low => 1000, high => 3000, percent => 25}, b => {low => 200,high => 2000, percent => 30}, c => {low => 1000,high => 6000, percent => 40}, d => {low => 300,high => 1800, percent => 35}, e => {low => 10, high => 40, percent => 60}, f => {low => 2, high => 12, percent => 50}, g => [ {select => 'new',low => 1,high => 1,percent => 10}, {select => 'expert',low => 1,high => 1,percent => 10}, ], }, ... );
I tried the GroupTags => { '' => 'g' } and GroupTags => { 'g' => 'select' } but with no success. any suggestions, solutions. thanksprint L $xsimple->XMLout( \%t_type, noattr => 1, xmldecl => '<?xml version="1.0"?>', );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash XML rounding trip
by dragonchild (Archbishop) on Aug 27, 2004 at 13:38 UTC | |
by arcnon (Monk) on Aug 27, 2004 at 13:50 UTC | |
by dragonchild (Archbishop) on Aug 27, 2004 at 14:12 UTC | |
|
Re: hash XML rounding trip
by arcnon (Monk) on Aug 27, 2004 at 14:28 UTC | |
by arcnon (Monk) on Aug 27, 2004 at 14:54 UTC | |
by dragonchild (Archbishop) on Aug 27, 2004 at 15:19 UTC |