"schema", true);
builder.setIgnoringElementContentWhitespace(ignoreWhitespace);
// Configure an entity resolver to find the schemas locally.
JarFileEntityResolver resolver = new EclipseEntityResolver();
resolver.addSystemIdMapping(DeviceSchemas.DEVICE_CURRENT);
resolver.addSystemIdMapping(DeviceSchemas.CORE_CURRENT);
resolver.addSystemIdMapping(DeviceSchemas.HEIRARCHY_CURRENT);
resolver.addSystemIdMapping(DeviceSchemas.IDENTIFICATION_CURRENT);
resolver.addSystemIdMapping(DeviceSchemas.TAC_IDENTIFICATION_CURRENT);
resolver.addSystemIdMapping(DeviceSchemas.POLICY_DEFINITIONS_CURRENT);
resolver.addSystemIdMapping(DeviceSchemas.REPOSITORY_CURRENT);
builder.setEntityResolver(resolver);
} else {
// No validation requested.
builder.setValidation(false);