axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r331253 - /webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMSerializerUtil.java
Date Mon, 07 Nov 2005 10:38:56 GMT
Author: chinthaka
Date: Mon Nov  7 02:38:45 2005
New Revision: 331253

URL: http://svn.apache.org/viewcvs?rev=331253&view=rev
Log:
Fixing a small namespace serialization bug.

Modified:
    webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMSerializerUtil.java

Modified: webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMSerializerUtil.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMSerializerUtil.java?rev=331253&r1=331252&r2=331253&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMSerializerUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMSerializerUtil.java
Mon Nov  7 02:38:45 2005
@@ -23,13 +23,13 @@
 import org.apache.axis2.om.impl.OMOutputImpl;
 import org.apache.axis2.om.impl.llom.serialize.StreamingOMSerializer;
 
-import java.util.Iterator;
-
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
 import javax.xml.stream.XMLStreamWriter;
+import java.util.Iterator;
 
 public class OMSerializerUtil {
+    private static int namespaceCounter = 0;
 
     /**
      * Method serializeEndpart
@@ -119,7 +119,7 @@
                             element.getLocalName());
                 } else {
                     if (prefix == null) {
-                        prefix = "";
+                        prefix = "ns"+ ++namespaceCounter;
                     }
                     writer.writeStartElement(prefix, element.getLocalName(),
                             nameSpaceName);



Mime
View raw message