Skip to content

Instantly share code, notes, and snippets.

@majuscule
Created November 1, 2012 23:06
Show Gist options
  • Save majuscule/3997357 to your computer and use it in GitHub Desktop.
Save majuscule/3997357 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use XML::SAX::ParserFactory;
use XML::Validator::Schema;
my $validator = XML::Validator::Schema->new(file => 'longtail.xsd');
my $parser = XML::SAX::ParserFactory->parser(Handler => $validator);
$parser->parse_uri('output.xml')
or die "Longtail failed to validate: $@" if $@;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment