Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

validate.pl 321B

12345678910111213
  1. #! /usr/bin/perl
  2. #
  3. # This is a simple wrapper to XML::LibXML. It will validate (more or less)
  4. # an XML file. Use this before committing something to CVS to make sure that
  5. # the file is at least parseable as XML.
  6. #
  7. use XML::LibXML;
  8. my $parser = XML::LibXML->new;
  9. foreach (@ARGV) {
  10. my $doc = $parser->parse_file($_);
  11. }