ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved