Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 8713
Status: rejected
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: frederik.uyttersprot [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.58
Fixed in: (no value)



Subject: XML::LibXML::Schema validate fails : XML::LibXML::Schema::validate() -- doc is not a blessed SV reference
Download (untitled) / with headers
text/plain 675b
Hi, I'm trying to use XML::LibXML::Schema validation and get the following error (see below); I have Perl 5.8.0, LibXML 1.58 and libxml2 2.6.16 - what is the reason for this error? Should I go back to 2.6.8? I require schema validation the most. I'm on Solaris 8 SPARC. Thanks for any feedback, Frederik. use strict; use XML::LibXML; my $xml = 'test.xml'; my $xsd = XML::LibXML::Schema->new(location => 'test.xsd'); eval { $xsd->validate($xml); }; die "*** Source document '$xml' invalid ***\n$@" if $@; And get the following error; *** Source document 'test.xml' invalid *** XML::LibXML::Schema::validate() -- doc is not a blessed SV reference at xmlValidate.pl line 10.
Download (untitled) / with headers
text/plain 923b
[guest - Thu Dec 2 10:14:02 2004]: Ingore this please !! My bad! My code was simple wrong! Sorry. You can close/remove this one. Show quoted text
> Hi, > > I'm trying to use XML::LibXML::Schema validation and get the following > error (see below); I have Perl 5.8.0, LibXML 1.58 and libxml2 > 2.6.16 - what is the reason for this error? Should I go back to > 2.6.8? I require schema validation the most. I'm on Solaris 8 > SPARC. > > Thanks for any feedback, > Frederik. > > use strict; > use XML::LibXML; > my $xml = 'test.xml'; > my $xsd = XML::LibXML::Schema->new(location => 'test.xsd'); > eval { $xsd->validate($xml); }; > die "*** Source document '$xml' invalid ***\n$@" if $@; > > And get the following error; > *** Source document 'test.xml' invalid *** > XML::LibXML::Schema::validate() -- doc is not a blessed SV reference > at xmlValidate.pl line 10.
Ingore this pleasa !! My bad! My code was simple wrong!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.