in reply to Getting the values from XML using XPATH

I tried something like this:

my $context = XML::LibXML::XPathContext->new( $dom->documentElement() + ); my @myEmpNodes = $context->findnodes("//oos:EmpDetailsResponse"); foreach $emp (@myEmpNodes) { print "\nEmp:\n", $emp->findvalue('//oos:EmpName'). "\n";
This puts everything in same one line and not yet included the ID's though. Appreciate your help in advance