#!/usr/bin/perl use strict; use warnings; use XML::LibXML; my $filename = "aos_list.xml"; my $parser = XML::LibXML->new(); my $xmldoc = $parser->parse_file($filename); # tried different Xpath - still returns nothing for my $sample ($xmldoc->findnodes('/GfmDocument/GFMIEDM35/OBJ_ITEM_OO_TBL/OBJ_ITEM')) { for my $property ($sample->findnodes('./*')) { print $property->nodeName(), ": ", $property->textContent(), "\n"; } print "\n"; }