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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: 'not a blessed SV reference' from XML::LibXML::RelaxNG::validate()
by robin (Chaplain) on Dec 19, 2007 at 14:46 UTC | |
Re: 'not a blessed SV reference' from XML::LibXML::RelaxNG::validate()
by ForgotPasswordAgain (Priest) on Dec 19, 2007 at 14:24 UTC | |
Re: 'not a blessed SV reference' from XML::LibXML::RelaxNG::validate()
by RoUS (Initiate) on Dec 19, 2007 at 14:58 UTC |
Back to
Seekers of Perl Wisdom