axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r564486 - /webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c
Date Fri, 10 Aug 2007 06:41:32 GMT
Author: samisa
Date: Thu Aug  9 23:41:31 2007
New Revision: 564486

URL: http://svn.apache.org/viewvc?view=rev&rev=564486
Log:
Fixed the empty tag writing style to write it like <tag/> and not <tag></tag>.


Modified:
    webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c

Modified: webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c?view=diff&rev=564486&r1=564485&r2=564486
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c (original)
+++ webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_writer_wrapper.c Thu Aug  9
23:41:31 2007
@@ -721,8 +721,11 @@
     writer_impl = AXIS2_INTF_TO_IMPL(writer);
 
     writer_impl->in_start_element = AXIS2_FALSE;
-
-    status = xmlTextWriterFullEndElement(writer_impl->xml_writer);
+    /* write an empty element in case the element is empty, 
+       status = xmlTextWriterFullEndElement(writer_impl->xml_writer);
+       Above call write it like <a></a>.
+       Call below will write it like <a/> */
+    status = xmlTextWriterEndElement(writer_impl->xml_writer);
     if (status < 0)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_WRITING_END_ELEMENT,



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message