my @trips= $p->findnodes( '//table[@id="tblFYCXML_Itin"]'); # So there's exactly one table with that id. # So @trips contains now exactly one node, that node being that one table. # You still with me? # If not, try it: print "There is/are ", scalar(@trips), " nodes in \@trips.\n";