예제 #1
0
    private DocumentBuilder getNonValidatingBuilder() throws Exception {

      DocumentBuilderFactory tFactory = DbfFactory.getFactory();
      tFactory.setValidating(false);
      DocumentBuilder tBuilder = tFactory.newDocumentBuilder();
      tBuilder.setEntityResolver(DbfFactory.FACES_ENTITY_RESOLVER);
      tBuilder.setErrorHandler(DbfFactory.FACES_ERROR_HANDLER);
      return tBuilder;
    }
예제 #2
0
    /**
     * Constructs a new ParseTask instance
     *
     * @param validating whether or not we're validating
     * @param documentURI a URL to the configuration resource to be parsed
     * @throws Exception general error
     */
    public ParseTask(boolean validating, URI documentURI) throws Exception {

      this.documentURI = documentURI;
      this.factory = DbfFactory.getFactory();
      this.validating = validating;
    }