summaryrefslogtreecommitdiff
path: root/t/27asxml.t
blob: d2a887ca6468284b788cc449c039f813c13be4b3 (plain)
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");