code: public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
      {
          if(isValidating()) {
              try {
                  return new ValidatingDocumentBuilder(
                      _WrappedFactory.newDocumentBuilder(),
                      _Schema.newVerifier());
              } catch(VerifierConfigurationException ex) {
                  throw new ParserConfigurationException(ex.getMessage());
              }
          } else
              //if validation is disabled, we simply return the implementation of wrapped DocumentBuilder
              return _WrappedFactory.newDocumentBuilder();
      }
docs: returns a new DOM parser.
  If setValidating(false) is called previously, this method
  simply returns the implementation of wrapped DocumentBuilder.