my $reports = $DOM_document->DocumentElement(); foreach my $report (in $reports->childNodes()) { foreach my $report_child (in $report->childNodes()) { if ($report_child->{'nodeName'} eq 'report-name') { print($report_child->text(), "\n"); next; } } }