File: 27asxml.t

package info (click to toggle)
libxml-xpath-perl 1.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 416 kB
  • ctags: 450
  • sloc: perl: 4,000; xml: 34; makefile: 33
file content (13 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test;
BEGIN { plan tests => 3 }

use XML::XPath;
ok(1);

my $parser = XML::XPath::Parser->new();
ok($parser);

my $path = $parser->parse('/foo[position() < 1]/bar[$variable = 3]');
ok($path);

# warn("Path: ", $path->as_xml(), "\n");