use strict; use warnings; use Test::More tests => 1; use XML::LibXML; # XML::LibXML->load_catalog( "example/catalog.xml" ); # the following document should not be able to get parsed # if the catalog is not available my $doc = XML::LibXML->new( catalog => "example/catalog.xml" )->parse_string(<
Something here 12345 2001-04-01 XML.com
Foo
Here's some leading text And here is the rest...
EOF # TEST ok($doc, 'Doc was parsed with catalog');