cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1394172 - /cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java
Date Thu, 04 Oct 2012 17:49:33 GMT
Author: dkulp
Date: Thu Oct  4 17:49:33 2012
New Revision: 1394172

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

........
  r1394163 | dkulp | 2012-10-04 13:21:53 -0400 (Thu, 04 Oct 2012) | 2 lines

  Fix an issue when using the W3CDOMStreamWriter with the dom4j dom implementation.

........

Modified:
    cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java

Modified: cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java?rev=1394172&r1=1394171&r2=1394172&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java
(original)
+++ cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java
Thu Oct  4 17:49:33 2012
@@ -82,11 +82,11 @@ public class W3CNamespaceContext impleme
 
                 String val = a.getValue();
                 if (val != null && val.equals(uri)) {
-                    String name = a.getNodeName();
+                    String name = a.getLocalName();
                     if ("xmlns".equals(name)) {
                         return "";
                     } else {
-                        return name.substring(6);
+                        return name;
                     }
                 }
             }



Mime
View raw message