1 7 8 package org.dom4j.datatype; 9 10 import junit.textui.TestRunner; 11 12 import org.dom4j.Document; 13 import org.dom4j.DocumentFactory; 14 15 22 public class ManualSchemaTest extends AutoSchemaTest { 23 public static void main(String [] args) { 24 TestRunner.run(ManualSchemaTest.class); 25 } 26 27 protected String getDocumentURI() { 30 return "/xml/test/schema/personal.xml"; 31 } 32 33 protected DocumentFactory loadDocumentFactory() throws Exception { 34 DatatypeDocumentFactory factory = new DatatypeDocumentFactory(); 35 36 Document schemaDocument = getDocument("/xml/test/schema/personal.xsd"); 37 factory.loadSchema(schemaDocument); 38 39 return factory; 40 } 41 } 42 43 79 | Popular Tags |