Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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
Node Status?
node history
Node Type: note [id://657884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-09-17 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls