use XML::Schematron; my $pseudotron = XML::Schematron->new_with_traits( traits => ['LibXSLT'], schema => "$schema_file"); my $messages = $pseudotron->verify($xml_file); print "$messages\n";