Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: 'not a blessed SV reference' from XML::LibXML::RelaxNG::validate()

by robin (Chaplain)
on Dec 19, 2007 at 14:46 UTC ( #657884=note: print w/replies, xml ) Need Help??


in reply to 'not a blessed SV reference' from XML::LibXML::RelaxNG::validate()

The error message is almost comically bad, but I think the problem is that you need to pass the return value of the parse_file method into the validate method:

my $doc = XML::LibXML->new()->parse_file('stsdef.xml'); my $rng = new XML::LibXML::RelaxNG(location => 'stsdef.rng'); $rng->validate($doc);
  • Comment on Re: 'not a blessed SV reference' from XML::LibXML::RelaxNG::validate()
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://657884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-11-29 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?