cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1307675 - /cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Date Sat, 31 Mar 2012 01:02:59 GMT
Author: dkulp
Date: Sat Mar 31 01:02:59 2012
New Revision: 1307675

URL: http://svn.apache.org/viewvc?rev=1307675&view=rev
Log:
Merged revisions 1307654 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1307654 | dkulp | 2012-03-30 19:53:28 -0400 (Fri, 30 Mar 2012) | 2 lines

  If repairing, check the attribute namespaces as well.

........

Modified:
    cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java

Modified: cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=1307675&r1=1307674&r2=1307675&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
(original)
+++ cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Sat Mar 31 01:02:59 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