https://testurl/opr-web/opr-evt-browser open critical medium SAR_OP_Service business_transaction_group 2017-06-06T15:37:13Z 2017-06-20T10:37:20.098Z 2017-06-20T10:37:20.156Z 2017-06-06T15:37:17.414Z SAR_RemedyIncident INC000018745375 SAR_RemedyQueue Coll@borate-L3 SAR_RemedyStatus Assigned SAR_SSRID 957 Service Name IPT 6/6/2017 03:37:13 PM 6/20/2017 10:37:20 AM 6/20/2017 10:37:20 AM 6/6/2017 03:37:17 PM #### #!/usr/bin/perl use warnings; use strict; use XML::XPath; my $file = 'C:/Users/snehit.rahate/Perl/events.xml'; my $xpath = q{//custom_attribute_list/custom_attribute[name='Service Name']/value}; # return no result my $xp = XML::XPath->new(filename=>$file); my $nodeset = $xp->find($xpath); for my $node ($nodeset->get_nodelist) { print " XML::XPath: ",$node->string_value,"\n"; }