<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
use XML::DT ;
my $filename = "ex6.xml";;

# Test comparasion of atribute with string...
# tests the normalize-space function

%handler=(
	  '-inputenc' =&gt; 'ISO-8859-1',
     '//*[normalize-space(@id) = "a"]' =&gt; sub{print "$c\n";toxml},
);
pathdt($filename,%handler);
print "\n";
</pre></body></html>