hakana has asked for the wisdom of the Perl Monks concerning the following question:
my @tc = param("checkbox"); #like: 001.001 002.001 003.001 004.001
<exec> <tc id="001.100"></tc> <tc id="002.100"></tc> <tc id="003.100"></tc> <tc id="004.100"></tc> </exec>
my $xml = new XML::Simple (Outputfile => $conf, RootName=>'exec'); $exec = { 'tc' => [ { 'id' => '001.001' }, { 'id' => '002.001' }, { 'id' => '003.001' }, ] }; $data = $xml->XMLout($exec); print Dumper($data); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding CGI params to XML-file
by jettero (Monsignor) on Jul 24, 2007 at 11:24 UTC | |
by Anonymous Monk on Jul 24, 2007 at 11:45 UTC | |
by planetscape (Chancellor) on Jul 24, 2007 at 12:54 UTC |