#!/usr/bin/perl use XML::Simple; my $file = 'text.xml'; my $xs1 = XML::Simple->new(); my $doc = $xs1->XMLin($file); foreach my $key (keys (%{$doc->{Attribute}})){ print $doc->{Attribute}->{$key}->{value} . ' (' . $key . ') '; } ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ x@ronin:~$ perl mx4j_parse.pl (value) (name) (isnull) (classname)