61
62 private StreamSource getInstance() {
63 return new StreamSource(Bug4966254.class.getResource(("Bug4966254.xml")).toExternalForm());
64 }
65
66 private Validator getValidator() throws SAXException {
67 Schema s = getSchema();
68 Validator v = s.newValidator();
69 Assert.assertNotNull(v);
70 v.setErrorHandler(new DraconianErrorHandler());
71 return v;
72 }
73
74 private Schema getSchema() throws SAXException {
75 SchemaFactory sf = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
76 Schema s = sf.newSchema(Bug4966254.class.getResource("Bug4966254.xsd"));
77 Assert.assertNotNull(s);
78 return s;
79 }
80 }
81
|
61
62 private StreamSource getInstance() {
63 return new StreamSource(Bug4966254.class.getResource(("Bug4966254.xml")).toExternalForm());
64 }
65
66 private Validator getValidator() throws SAXException {
67 Schema s = getSchema();
68 Validator v = s.newValidator();
69 Assert.assertNotNull(v);
70 v.setErrorHandler(new DraconianErrorHandler());
71 return v;
72 }
73
74 private Schema getSchema() throws SAXException {
75 SchemaFactory sf = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
76 Schema s = sf.newSchema(Bug4966254.class.getResource("Bug4966254.xsd"));
77 Assert.assertNotNull(s);
78 return s;
79 }
80 }
|