axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r600796 - /webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c
Date Tue, 04 Dec 2007 06:09:06 GMT
Author: pini
Date: Mon Dec  3 22:09:04 2007
New Revision: 600796

URL: http://svn.apache.org/viewvc?rev=600796&view=rev
Log:
Fixing jira issue 796

Modified:
    webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c

Modified: webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c?rev=600796&r1=600795&r2=600796&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c Mon Dec  3 22:09:04 2007
@@ -1133,21 +1133,19 @@
 
     case AXIOM_XML_READER_COMMENT:
         val = axiom_stax_builder_create_om_comment(om_builder, env);
-        if (!val)
+        if (val)
         {
-            return -1;
+            axiom_stax_builder_end_element(om_builder, env);
         }
-        axiom_stax_builder_end_element(om_builder, env);
         break;
 
     case AXIOM_XML_READER_PROCESSING_INSTRUCTION:
         val = axiom_stax_builder_create_om_processing_instruction(om_builder,
                                                                   env);
-        if (!val)
+        if (val)
         {
-            return -1;
+            axiom_stax_builder_end_element(om_builder, env);
         }
-        axiom_stax_builder_end_element(om_builder, env);
         break;
 
     case AXIOM_XML_READER_CDATA:



---------------------------------------------------------------------
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