A very simple script, almost out of the documentation:
#! /usr/bin/perl -w
my $doc = new XML::LibXML;
my $rng = new XML::LibXML::RelaxNG(location => 'stsdef.rng');
At first it complained about syntax errors in the RNG file, but once I got those cleared up I got this instead: XML::LibXML::RelaxNG::validate() -- doc is not a blessed SV reference at rng.pl line 9.
That's not a message I've had any luck finding a meaningful explanation for. Is there some prerequisite step I'm missing here?