1 7 8 package org.dom4j.datatype; 9 10 import junit.textui.TestRunner; 11 12 import org.dom4j.AbstractTestCase; 13 import org.dom4j.Document; 14 import org.dom4j.io.SAXReader; 15 16 22 public class SchemaParseTest extends AbstractTestCase { 23 public static void main(String [] args) { 24 TestRunner.run(SchemaParseTest.class); 25 } 26 27 public void testParseSchema() throws Exception { 30 DatatypeDocumentFactory factory = new DatatypeDocumentFactory(); 31 32 SAXReader reader = new SAXReader(); 33 reader.setDocumentFactory(factory); 34 35 Document schema = getDocument("/xml/test/LuisSchema.xsd", reader); 36 factory.loadSchema(schema); 37 38 log("Loaded the schema"); 39 40 } 42 } 43 44 80 | Popular Tags |