You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2009/02/13 04:40:01 UTC
svn commit: r743967 -
/cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Author: dkulp
Date: Fri Feb 13 03:40:00 2009
New Revision: 743967
URL: http://svn.apache.org/viewvc?rev=743967&view=rev
Log:
[CXF-2033] Use the element returned from appendChild to keep attributes consistent.
Modified:
cxf/trunk/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
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=743967&r1=743966&r2=743967&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 Feb 13 03:40:00 2009
@@ -685,7 +685,7 @@
e.setPrefix(reader.getPrefix());
}
- parent.appendChild(e);
+ e = (Element)parent.appendChild(e);
for (int ns = 0; ns < reader.getNamespaceCount(); ns++) {
String uri = reader.getNamespaceURI(ns);