Sporti69 has asked for the wisdom of the Perl Monks concerning the following question:
But this fails : -------------------<node1> <node1_A> Content </node1_A> <node1_B> Content </node1_B> </node1>
-----------------------------------------------------<node1> <node1_A> Content </node1_A> <node1_A> Content </node1_A> </node1>
I guess the keys are not unique ??? Because it works with more elements in the xml.foreach my $this_routine ( sort keys %subroutines ) my $element_count = scalar( keys %{$subroutines{$this_routine}} ); $worksheet->Cells($rowCount, $colCount)->{Value} = $this_routine; $rowCount++; foreach my $this_type (sort keys %{$subroutines{$this_routine}} ) { if ( exists $subroutines{$this_routine}->{$this_type}->{Type}) { $worksheet->Cells($rowCount, $colCount)->{Value} = $this_type; } $colCount++; } $rowCount--; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML to Excel : not Unique ??
by ikegami (Patriarch) on Oct 30, 2008 at 19:48 UTC | |
|
Re: XML to Excel : not Unique ??
by Sporti69 (Acolyte) on Oct 31, 2008 at 09:24 UTC | |
by Anonymous Monk on Oct 31, 2008 at 10:55 UTC | |
by Sporti69 (Acolyte) on Oct 31, 2008 at 11:20 UTC | |
by Anonymous Monk on Oct 31, 2008 at 12:37 UTC |