On Sunday 21 November 2004 20:05, Michael Schuerig wrote:
> If only I could obtain a URL pointing to my file.

    public Element writeSchema( Class javaType, Types types )
        throws Exception {
        if (StringUtils.isNotBlank(_schemaName)) {
            URL schemaURL = getClass().getResource(_schemaName);
            if (schemaURL != null) {
                types.loadInputSchema(schemaURL.toString());
            } else {
                logger.error("No XML schema file found for name: " +
                         _schemaName);
            }
        }
        return null;
    }

M.

-- 
Michael Schuerig                       Face reality and stare it down
mailto:[EMAIL PROTECTED]        --Jethro Tull, Silver River Turning
http://www.schuerig.de/michael/

Reply via email to