I am trying to validate the below xsd http://nvd.nist.gov/schema/nvd-cve-feed_2.0.xsd
with this xml :
http://static.nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-recent.xml
using XML::LibXML::Schema and get an error message
using the below code :
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; }
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?