in reply to Getting the values from XML using XPATH

This should work:
for my $emp (@myEmpNodes) { my @names = $emp->findnodes('oos:EmpName'); for my $name (@names) { print "\nEmp: ", $name->getAttribute('id'), "\n"; print $name->textContent, "\n"; } }

Replies are listed 'Best First'.
Re^2: Getting the values from XML using XPATH
by perlDevsWorld (Novice) on Apr 09, 2015 at 14:32 UTC
    Thanks so much all!.