File: ex7.pl

package info (click to toggle)
libxml-dt-perl 0.69-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 388 kB
  • sloc: perl: 1,432; xml: 438; makefile: 16
file content (13 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
use XML::DT ;
my $filename = "ex7.xml";;

# Test the name()
# tests the starts_with and the contains

%handler=(
	  '-inputenc' => 'ISO-8859-1',
     '//*[not(contains(name(),"c"))]' => sub{print "$c\n";toxml},
);
pathdt($filename,%handler);
print "\n";