1 package org.apache.ws.jaxme.xs.junit; 2 3 import java.io.File ; 4 import java.io.FileReader ; 5 6 import org.apache.ws.jaxme.xs.util.DTDParser; 7 import org.xml.sax.InputSource ; 8 9 import junit.framework.TestCase; 10 11 12 15 public class DTDParserTest extends TestCase { 16 18 public DTDParserTest(String pName) { super(pName); } 19 20 22 public void testXMLSchemaDtd() throws Exception { 23 String path = System.getProperty("path.xmlSchema.dtd", "examples/xs/XMLSchema.dtd"); 24 File f = new File (path); 25 InputSource isource = new InputSource (new FileReader (f)); 26 isource.setSystemId(f.toURL().toString()); 27 new DTDParser().parse(isource); 28 } 29 } 30 | Popular Tags |