Revision 4080
Added by daigle about 16 years ago
DBValidate.java | ||
---|---|---|
38 | 38 |
|
39 | 39 |
import org.w3c.dom.*; |
40 | 40 |
import org.xml.sax.*; |
41 |
import org.xml.sax.XMLReader; |
|
42 | 41 |
import org.xml.sax.helpers.XMLReaderFactory; |
43 | 42 |
|
44 | 43 |
import com.arbortext.catalog.*; |
45 | 44 |
|
45 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
|
46 |
|
|
46 | 47 |
/** |
47 | 48 |
* Name: DBValidate.java |
48 | 49 |
* Purpose: A Class that validates XML documents |
... | ... | |
70 | 71 |
alreadyHandle = false; |
71 | 72 |
try { |
72 | 73 |
// Get an instance of the parser |
73 |
String parserName = MetaCatUtil.getOption("saxparser");
|
|
74 |
String parserName = PropertyService.getProperty("saxparser");
|
|
74 | 75 |
parser = XMLReaderFactory.createXMLReader(parserName); |
75 | 76 |
parser.setFeature("http://xml.org/sax/features/validation",true); |
76 | 77 |
//parser.setValidationMode(true); // Oracle |
... | ... | |
227 | 228 |
|
228 | 229 |
String doc = args[0]; |
229 | 230 |
|
230 |
MetaCatUtil util = new MetaCatUtil(); |
|
231 | 231 |
DBConnection conn = null; |
232 | 232 |
int serailNumber = -1; |
233 | 233 |
try { |
Also available in: Unified diff
Merge 1.9 changes into Head