http://qs321.pair.com?node_id=657872

RoUS has asked for the wisdom of the Perl Monks concerning the following question:

A very simple script, almost out of the documentation:

#! /usr/bin/perl -w use strict; use XML::LibXML; my $doc = new XML::LibXML; $doc->parse_file('stsdef.xml'); my $rng = new XML::LibXML::RelaxNG(location => 'stsdef.rng'); $rng->validate($doc);

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?

Thanks!