use utf8; use XML::Simple; my $ref = XMLin(' '); print join( "\n", map { $_->{'Name'} } @{$ref->{'Student'}});