my $xs1 = XML::Simple->new(); $doc = $xs1->XMLin('./foo.xml'); $industrycode1 = $doc->{DataContent}->{head}->{meta}->{"APU:IndustryCode"}->{content};