You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2007/08/15 19:22:17 UTC

svn commit: r566272 - /logging/log4j/branches/BRANCH_1_3_ABANDONED/src/main/java/org/apache/log4j/xml/XMLDecoder.java

Author: carnold
Date: Wed Aug 15 10:22:16 2007
New Revision: 566272

URL: http://svn.apache.org/viewvc?view=rev&rev=566272
Log:
Bug 43131: Remove dummy: protocol from XMLDecoder

Modified:
    logging/log4j/branches/BRANCH_1_3_ABANDONED/src/main/java/org/apache/log4j/xml/XMLDecoder.java

Modified: logging/log4j/branches/BRANCH_1_3_ABANDONED/src/main/java/org/apache/log4j/xml/XMLDecoder.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/BRANCH_1_3_ABANDONED/src/main/java/org/apache/log4j/xml/XMLDecoder.java?view=diff&rev=566272&r1=566271&r2=566272
==============================================================================
--- logging/log4j/branches/BRANCH_1_3_ABANDONED/src/main/java/org/apache/log4j/xml/XMLDecoder.java (original)
+++ logging/log4j/branches/BRANCH_1_3_ABANDONED/src/main/java/org/apache/log4j/xml/XMLDecoder.java Wed Aug 15 10:22:16 2007
@@ -68,7 +68,7 @@
      */
   private static final String BEGINPART =
     "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"
-    + "<!DOCTYPE log4j:eventSet SYSTEM \"log4j.dtd\">"
+    + "<!DOCTYPE log4j:eventSet SYSTEM \"http://localhost/log4j.dtd\">"
     + "<log4j:eventSet version=\"1.2\" "
     + "xmlns:log4j=\"http://jakarta.apache.org/log4j/\">";
     /**
@@ -165,7 +165,6 @@
 
       InputSource inputSource =
         new InputSource(new StringReader(buf.toString()));
-      inputSource.setSystemId("dummy://log4j.dtd");
       document = docBuilder.parse(inputSource);
     } catch (Exception e) {
       e.printStackTrace();



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org