You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/11/21 16:20:28 UTC

svn commit: r1544210 - /tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java

Author: markt
Date: Thu Nov 21 15:20:28 2013
New Revision: 1544210

URL: http://svn.apache.org/r1544210
Log:
Fix copy/paste oversight in r1544208

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java?rev=1544210&r1=1544209&r2=1544210&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/digester/Digester.java Thu Nov 21 15:20:28 2013
@@ -416,9 +416,11 @@ public class Digester extends DefaultHan
 
             factory.setNamespaceAware(namespaceAware);
             // Preserve xmlns attributes
-            factory.setFeature(
-                "http://xml.org/sax/features/namespace-prefixes",
-                true);
+            if (namespaceAware) {
+                factory.setFeature(
+                        "http://xml.org/sax/features/namespace-prefixes",
+                        true);
+            }
 
             factory.setValidating(validating);
             if (validating) {



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