@@ -0,0 +1,980 @@
+package bioc.test.junit;%0A%0Aimport java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileReader;%0Aimport java.net.MalformedURLException;%0A%0Aimport org.custommonkey.xmlunit.Validator;%0Aimport org.custommonkey.xmlunit.exceptions.ConfigurationException;%0Aimport org.junit.Test;%0Aimport org.xml.sax.SAXException;%0A%0Apublic class BioCValidation %7B%0A%0A  String localDTD = %22xml/BioC.dtd%22;%0A%0A  @Test%0A  public void test()%0A      throws ConfigurationException, FileNotFoundException, SAXException,%0A      MalformedURLException %7B%0A    test(new File(%22xml/PMID-8557975-simplified-sentences-tokens.xml%22));%0A    test(new File(%22xml/PMID-8557975-simplified-sentences.xml%22));%0A  %7D%0A%0A  private void test(File file)%0A      throws FileNotFoundException, ConfigurationException, SAXException,%0A      MalformedURLException %7B%0A    FileReader reader = new FileReader(file);%0A    File dtd = new File(localDTD);%0A    Validator v = new Validator(reader, dtd.toURI().toURL().toString());%0A    v.assertIsValid();%0A  %7D%0A%7D%0A

add BioC file validation