data-aggregation-europeana/src/main/java/inescid/oaipmh/harvesters/XmlUtil.java
/**
     * Creates a new Schema using the default XML implementation
     * 
     * @param xmlSchema
     * @return Schema
     */
Creates a new Schema using the default XML implementation

@param xmlSchema
@return Schema
Creates a new Schema using the default XML implementation @param xmlSchema @return Schema
public static Schema newSchema(File xmlSchema) {
        try {
            return W3X_XML_SCHEMA_FACTORY.newSchema(xmlSchema);
        } catch (SAXException e) {
            throw new RuntimeException("Could not create schema for file '" + xmlSchema.getName() +
                                       "'!", e);
        }
    }
public static Schema newSchema ( File xmlSchema ) { try { return W3X_XML_SCHEMA_FACTORY . newSchema ( xmlSchema ) ; } catch ( SAXException e ) { throw new RuntimeException ( "Could not create schema for file '" + xmlSchema . getName ( ) + "'!" , e ) ; } }
Creates a new Schema using the default XML implementation
Creates a new Schema using the default XML implementation