private SchemaInfo createSchemaInfo(Element schemaEl, String systemId) { SchemaInfo info = new SchemaInfo(schemaEl.getAttribute("targetNamespace")); info.setElement(schemaEl); info.setSystemId(systemId); // Lets try to read the schema to deal with the possible // eviction of the DOM element from the memory try { XmlSchema xmlSchema = schemaCollection.read(schemaEl, systemId); info.setSchema(xmlSchema); } catch (Exception ex) { // may be due to unsupported resolvers for protocols like // classpath: or not the valid schema definition, may not be critical // for the purpose of the schema compilation. } return info; }
schema.setSystemId(systemId); XmlSchema xmlSchema; synchronized (d) {
schema.setSystemId(systemId); XmlSchema xmlSchema; synchronized (d) {
schema.setSystemId(systemId); XmlSchema xmlSchema; synchronized (d) {
schema.setSystemId(systemId); XmlSchema xmlSchema; synchronized (d) {
SchemaInfo schemaInfo = new SchemaInfo(xmlSchema.getTargetNamespace()); schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo);
SchemaInfo schemaInfo = new SchemaInfo(xmlSchema.getTargetNamespace()); schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo);
SchemaInfo schemaInfo = new SchemaInfo(xmlSchema.getTargetNamespace()); schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo);
SchemaInfo schemaInfo = new SchemaInfo(xmlSchema.getTargetNamespace()); schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo);
SchemaInfo schemaInfo = new SchemaInfo(xmlSchema.getTargetNamespace()); schemaInfo.setSchema(xmlSchema); schemaInfo.setSystemId(systemId); schemaInfo.setElement(schemaElem); schemaInfos.add(schemaInfo);