cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1307654 - /cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Date Fri, 30 Mar 2012 23:53:29 GMT
Author: dkulp
Date: Fri Mar 30 23:53:28 2012
New Revision: 1307654

URL: http://svn.apache.org/viewvc?rev=1307654&view=rev
Log:
If repairing, check the attribute namespaces as well.

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=1307654&r1=1307653&r2=1307654&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java Fri Mar 30 23:53:28
2012
@@ -790,6 +790,9 @@ public final class StaxUtils {
                     } else if (attrPrefix.length() == 0) {
                         writer.writeAttribute(attns, name, value);
                     } else {
+                        if (repairing && DOMUtils.getNamespace(e, attrPrefix) ==
null) {
+                            writer.writeNamespace(attrPrefix, attns);
+                        }
                         writer.writeAttribute(attrPrefix, attns, name, value);
                     }                    
                 }



Mime
View raw message