Revision 5339
Added by berkley almost 14 years ago
DocumentImpl.java | ||
---|---|---|
3469 | 3469 |
parser.setFeature(SCHEMAVALIDATIONFEATURE, true); |
3470 | 3470 |
|
3471 | 3471 |
Vector<XMLSchema> schemaList = xmlss.findSchemasInXML((StringReader)xml); |
3472 |
System.out.println("schemaList: " + schemaList.toString()); |
|
3473 | 3472 |
boolean allSchemasRegistered = |
3474 | 3473 |
xmlss.areAllSchemasRegistered(schemaList); |
3475 |
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!are all schemas registered: " + allSchemasRegistered); |
|
3476 | 3474 |
if (xmlss.useFullSchemaValidation() && !allSchemasRegistered) { |
3477 |
System.out.println("setting full schema validation"); |
|
3478 | 3475 |
parser.setFeature(FULLSCHEMAVALIDATIONFEATURE, true); |
3479 | 3476 |
} |
3480 | 3477 |
// From DB to find the register external schema location |
3481 | 3478 |
String externalSchemaLocation = null; |
3482 | 3479 |
externalSchemaLocation = xmlss.getNameSpaceAndLocationString(); |
3483 |
System.out.println("external schema location: " + externalSchemaLocation); |
|
3484 | 3480 |
logMetacat.debug("DocumentImpl.initalizeParser - Generic external schema location: " + externalSchemaLocation); |
3485 | 3481 |
// Set external schemalocation. |
3486 | 3482 |
if (externalSchemaLocation != null |
3487 | 3483 |
&& !(externalSchemaLocation.trim()).equals("")) { |
3488 |
System.out.println("setting external schema location to " + externalSchemaLocation); |
|
3489 | 3484 |
parser.setProperty(EXTERNALSCHEMALOCATIONPROPERTY, |
3490 | 3485 |
externalSchemaLocation); |
3491 | 3486 |
} |
Also available in: Unified diff
removed system.outs