cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1149605 - in /cxf/trunk: common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java parent/pom.xml
Date Fri, 22 Jul 2011 13:43:52 GMT
Author: dkulp
Date: Fri Jul 22 13:43:51 2011
New Revision: 1149605

URL: http://svn.apache.org/viewvc?rev=1149605&view=rev
Log:
Update to latest neethi.  Remove a el.setPrefix call

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
    cxf/trunk/parent/pom.xml

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=1149605&r1=1149604&r2=1149605&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java Fri Jul
22 13:43:51 2011
@@ -963,10 +963,13 @@ public final class StaxUtils {
             switch (event) {
             case XMLStreamConstants.START_ELEMENT: {
                 elementCount++;
-                Element e = doc.createElementNS(reader.getNamespaceURI(), reader.getLocalName());
+                Element e;
                 if (!StringUtils.isEmpty(reader.getPrefix())) {
-                    e.setPrefix(reader.getPrefix());
-                }       
+                    e = doc.createElementNS(reader.getNamespaceURI(), 
+                                            reader.getPrefix() + ":" + reader.getLocalName());
+                } else {
+                    e = doc.createElementNS(reader.getNamespaceURI(), reader.getLocalName());
+                }
                 e = (Element)parent.appendChild(e);
                 recordLoc = addLocation(doc, e, reader, recordLoc);
 

Modified: cxf/trunk/parent/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/parent/pom.xml?rev=1149605&r1=1149604&r2=1149605&view=diff
==============================================================================
--- cxf/trunk/parent/pom.xml (original)
+++ cxf/trunk/parent/pom.xml Fri Jul 22 13:43:51 2011
@@ -95,7 +95,7 @@
         <cxf.opensamlws.version>1.4.1</cxf.opensamlws.version>
         <cxf.opensaml.osgi.version>2.4.1_1</cxf.opensaml.osgi.version>
         <cxf.opensaml.xmltooling.version>1.3.1</cxf.opensaml.xmltooling.version>
-        <cxf.neethi.version>3.0.0</cxf.neethi.version>
+        <cxf.neethi.version>3.0.1</cxf.neethi.version>
         <cxf.velocity.version>1.7</cxf.velocity.version>
 
         <cxf.geronimo.annotation.version>1.1.1</cxf.geronimo.annotation.version>



Mime
View raw message