XML-Twig
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/xmlxpath_08name.t view on Meta::CPAN
ok(1);
my $t= XML::Twig::XPath->new->parse( \*DATA);
ok( $t);
my @nodes;
@nodes = $t->findnodes( '//*[name() = "BBB"]');
ok(@nodes, 5);
@nodes = $t->findnodes( '//*[starts-with(name(), "B")]');
ok(@nodes, 7);
@nodes = $t->findnodes( '//*[contains(name(), "C")]');
ok(@nodes, 3);
exit 0;
__DATA__
<AAA>
<BCC><BBB/><BBB/><BBB/></BCC>
view all matches for this distributionview release on metacpan - search on metacpan
( run in 6.059 seconds using v1.00-cache-2.02-grep-82fe00e-cpan-f5108d614456 )