cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r933085 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamWriter.java
Date Mon, 12 Apr 2010 03:55:40 GMT
Author: dkulp
Date: Mon Apr 12 03:55:39 2010
New Revision: 933085

URL: http://svn.apache.org/viewvc?rev=933085&view=rev
Log:
[CXF=2752] Default xmlns decls that come from non-woodstox parsers may
have a null namespace as well.

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamWriter.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamWriter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamWriter.java?rev=933085&r1=933084&r2=933085&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamWriter.java
(original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/W3CDOMStreamWriter.java
Mon Apr 12 03:55:39 2010
@@ -170,7 +170,7 @@ public class W3CDOMStreamWriter implemen
 
     public void writeAttribute(String local, String value) throws XMLStreamException {
         Attr a;
-        if (local.startsWith("xmlns:")) {
+        if (local.startsWith("xmlns") && (local.length() == 5 || local.charAt(5)
== ':')) {
             a = document.createAttributeNS(XML_NS, local);
         } else {
             a = document.createAttributeNS(null, local);



Mime
View raw message