Re: error from XML::SAX::ExpatXS trying to validate against schema
by Petr Cimprich other posts by this author
Dec 14 2005 1:10AM messages near this date
view in the new Beta List Site
Re: error from XML::SAX::ExpatXS trying to validate against schema
|
Re: error from XML::SAX::ExpatXS trying to validate against schema
& XSLT This error message is normally issued when ExpatXS can't open a file in
parse_uri (yes, it should provide a more clear message). Make sure
'messages/tar/all_clear.xml' is resolved right.
Petr
Jeff Kyser wrote:
> Hi all,
>
> I've encountered an error while trying to validate
> my XML against a schema, and wondered if anyone
> else had seen this, or could make a recommendation.
>
> <snippet>
> my $validator = XML::Validator::Schema->new(debug => 'true', file =>
> 'schema/tar/0.9.xsd');
> my $parser = XML::SAX::ExpatXS->new(Handler => $validator);
>
> eval {
> $parser->parse_uri ('messages/tar/all_clear.xml');
> };
>
> die "File failed validation: $@" if $@;
> </snippet>
>
> produces:
>
> File failed validation: Can't call method "read" on an undefined
> value at /usr/local/lib/perl5/site_perl/5.8.6/mach/XML/SAX/ExpatXS.pm
> line 151.
>
> thanks in advance,
>
> -jeff
>
> v1.08 of XML::SAX::ExpatXS
> v1.08 of XML::Validator::Schema
>
> _______________________________________________
> Perl-XML mailing list
> Perl-XML@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--
Petr Cimprich
Ginger Alliance
www.gingerall.com
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Jeff Kyser
Jeff Kyser
Petr Cimprich
Jeff Kyser
|