You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/10/06 14:18:15 UTC

svn commit: r306608 - /webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c

Author: samisa
Date: Thu Oct  6 05:18:07 2005
New Revision: 306608

URL: http://svn.apache.org/viewcvs?rev=306608&view=rev
Log:
Fixed the limitation of repeated duplicate namespace declaration

Modified:
    webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c

Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c?rev=306608&r1=306607&r2=306608&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c Thu Oct  6 05:18:07 2005
@@ -385,6 +385,9 @@
         if (!prefix)
             prefix = GUTHTHILA_DEFAULT_NS_PREFIX;
 
+        char* declared_prefix = guththila_xml_stream_writer_get_prefix(stream_writer, namespace_uri);
+        if (declared_prefix && strcmp(prefix, declared_prefix) == 0)
+            return GUTHTHILA_SUCCESS;
         guththila_xml_stream_writer_set_prefix(stream_writer, prefix, namespace_uri);
         
         fputs(" ", stream_writer->writer);