Johnd has asked for the wisdom of the Perl Monks concerning the following question:
and get an error message that the schema is error could someone tell why this validation is end with error and if i need to revisit my code for this validation to end with success?my $schema = XML::LibXML::Schema->new(location =>$xsd); my $parser = XML::LibXML->new; my $doc = $parser->parse_file($xml); eval { $schema->validate( $doc ) }; if ( my $ex = $@ ) { return $ex; } return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: validating xml with perl
by tangent (Parson) on Mar 18, 2012 at 20:38 UTC | |
by Johnd (Initiate) on Mar 18, 2012 at 21:30 UTC | |
by tangent (Parson) on Mar 19, 2012 at 19:12 UTC |