my $path = '//includes/include'; my $nodes = $xp->find($path); for my $include ($nodes->get_nodelist) { my $priority = $xp->find('./priority', $include); my $location = $xp->find('./location', $include); print "Location = " . $location->string_value; print ", with Priority = " . $priority->string_value . "\n"; ## I want to change this priority value to +1