Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 surveying the Monastery: (7)
As of 2014-07-29 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (228 votes), past polls