ceki        2003/02/19 06:29:40

  Modified:    src/java/org/apache/log4j/xml Tag: v1_2-branch
                        DOMConfigurator.java
  Log:
  Forgot to include comments in the previous commit.
  
  Artifically changing the system id from "log4j.dtd" to "dummy://log4j.dtd" and
  setting an entity resolver seems to satisfy all parsers. Thus, there is no need
  to worry about changing the format of config files.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.49.2.5  +2 -0      jakarta-log4j/src/java/org/apache/log4j/xml/DOMConfigurator.java
  
  Index: DOMConfigurator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-log4j/src/java/org/apache/log4j/xml/DOMConfigurator.java,v
  retrieving revision 1.49.2.4
  retrieving revision 1.49.2.5
  diff -u -r1.49.2.4 -r1.49.2.5
  --- DOMConfigurator.java      19 Feb 2003 14:24:06 -0000      1.49.2.4
  +++ DOMConfigurator.java      19 Feb 2003 14:29:40 -0000      1.49.2.5
  @@ -652,7 +652,9 @@
         
       try {
         dbf.setValidating(true);
  +
         DocumentBuilder docBuilder = dbf.newDocumentBuilder();
  +
         docBuilder.setErrorHandler(new SAXErrorHandler());      
         docBuilder.setEntityResolver(new Log4jEntityResolver());        
         // we change the system ID to a valid URI so that Crimson won't
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to