cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1394163 - /cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java
Date Thu, 04 Oct 2012 17:21:53 GMT
Author: dkulp
Date: Thu Oct  4 17:21:53 2012
New Revision: 1394163

URL: http://svn.apache.org/viewvc?rev=1394163&view=rev
Log:
Fix an issue when using the W3CDOMStreamWriter with the dom4j dom implementation.

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

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java?rev=1394163&r1=1394162&r2=1394163&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/W3CNamespaceContext.java Thu Oct
 4 17:21:53 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