http://qs321.pair.com?node_id=1217418

Magnolia25 has asked for the wisdom of the Perl Monks concerning the following question:

I need to access the REPEATING NODE VALUES under size tag and prepare the output may be as. I need to stick with the use of XML::Simple only for now.

ITEM NUMBER: QWZ5671 COLORS: Red Burgundy

Your expert advice would be appreciated!!!

#!/usr/bin/perl -w use strict; use XML::Simple; use Data::Dumper; my $xmlData; my $xmlReader = XML::Simple->new(); $xmlData = $xmlReader->XMLin(); # print Dumper( %{$xmlData} ); ## ACCESS REPEATING NODE VALUES - __DATA__ <product description="watches" product_image="watches.jpg"> <item_number>QWZ5671</item_number> <size> <color_swatch image="red_watches.jpg">Red</color_swatch> <color_swatch image="burgundy_watches.jpg">Burgundy</color +_swatch> </size> </product>