From a2d12bc84fb2af87dd1c0c6e5bc854554902cd67 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sun, 26 Jan 2003 19:35:03 +0000 Subject: Imported from /home/lorry/working-area/delta_perl-xml-xpath/XML-XPath-1.13.tar.gz. --- t/rdf.t | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 t/rdf.t (limited to 't/rdf.t') diff --git a/t/rdf.t b/t/rdf.t new file mode 100644 index 0000000..a477a03 --- /dev/null +++ b/t/rdf.t @@ -0,0 +1,59 @@ +use Test; +BEGIN { plan tests => 5 } + +use XML::XPath; + +#$XML::XPath::Debug = 1; +#$XML::XPath::SafeMode = 1; + +my $xp = XML::XPath->new(ioref => *DATA); +ok($xp); + +my $nodeset = $xp->find('/rdf:RDF/channel//@rdf:*'); +ok($nodeset); + +ok($nodeset->size); + +ok(4); +ok(5); + +__DATA__ + + + + + Meerkat + http://meerkat.oreillynet.com + Meerkat: An Open Wire Service + + + + + Meerkat Powered! + http://meerkat.oreillynet.com/icons/meerkat-powered.jpg + http://meerkat.oreillynet.com + + + + + XML: A Disruptive Technology + http://c.moreover.com/click/here.pl?r123 + + XML is placing increasingly heavy loads on the existing technical + infrastructure of the Internet. + + + + + + Search XML.com + Search XML.com's XML collection + s + http://search.xml.com + + + -- cgit v1.2.1