You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2006/01/30 12:00:14 UTC

svn commit: r373488 - in /webservices/axis2/trunk/c/modules/xml/om: om_children_with_specific_attribute_iterator.c om_stax_builder.c

Author: nandika
Date: Mon Jan 30 03:00:06 2006
New Revision: 373488

URL: http://svn.apache.org/viewcvs?rev=373488&view=rev
Log: (empty)

Modified:
    webservices/axis2/trunk/c/modules/xml/om/om_children_with_specific_attribute_iterator.c
    webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c

Modified: webservices/axis2/trunk/c/modules/xml/om/om_children_with_specific_attribute_iterator.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_children_with_specific_attribute_iterator.c?rev=373488&r1=373487&r2=373488&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_children_with_specific_attribute_iterator.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_children_with_specific_attribute_iterator.c Mon Jan 30 03:00:06 2006
@@ -166,6 +166,7 @@
     axis2_bool_t matching_node_found = AXIS2_FALSE;
     axis2_bool_t need_to_move_forward = AXIS2_TRUE;
     
+    
     axis2_om_children_with_specific_attribute_iterator_impl_t *iterator_impl = NULL;
     AXIS2_FUNC_PARAM_CHECK(iterator, env, AXIS2_FAILURE);
     iterator_impl = AXIS2_INTF_TO_IMPL(iterator);
@@ -184,6 +185,7 @@
                             iterator_impl->current_child, env);
             om_attr = AXIS2_OM_ELEMENT_GET_ATTRIBUTE(om_ele, env,
                             iterator_impl->attr_qname);
+            break;           
             if(om_attr && 
                 (AXIS2_STRCMP(AXIS2_OM_ATTRIBUTE_GET_VALUE(om_attr, env), 
                     iterator_impl->attr_value) == 0))
@@ -209,7 +211,7 @@
                 need_to_move_forward = (iterator_impl->current_child != NULL);
         }
         
-    }   
+    } 
     return matching_node_found;
 }                                      
 

Modified: webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c?rev=373488&r1=373487&r2=373488&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c Mon Jan 30 03:00:06 2006
@@ -699,10 +699,6 @@
     {
         if (builder_impl->done)
         {
-            AXIS2_LOG_WRITE((*env)->log,
-                "AXIS2_ERROR_BUILDER_DONE_CANNOT_PULL either the xml is over or a critical error occured",
-                AXIS2_LOG_LEVEL_DEBUG);
-            
             AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_BUILDER_DONE_CANNOT_PULL, AXIS2_FAILURE);
             return NULL;
         }
@@ -906,9 +902,6 @@
     token = AXIS2_XML_READER_NEXT (builder_impl->parser, env);
     if(token == -1)
     {
-        AXIS2_LOG_WRITE((*env)->log,
-                "AXIS2_XML_READER_RETURNED AN ERROR either the xml is over or a critical error occured",
-                AXIS2_LOG_LEVEL_CRITICAL);
         builder_impl->done = AXIS2_TRUE;
         return -1;
     }
@@ -921,40 +914,28 @@
     switch (token)
     {
         case AXIS2_XML_READER_START_DOCUMENT:
-            AXIS2_LOG_WRITE((*env)->log, " start of xml document START_DOCUMENT_EVENT",
-                AXIS2_LOG_LEVEL_DEBUG);
         /*Do nothing */
         break;
         
         case AXIS2_XML_READER_START_ELEMENT:
             axis2_om_stax_builder_create_om_element (
                         builder, env); 
-          AXIS2_LOG_WRITE((*env)->log, "AXIS2_XML_READER_START_ELEMENT",
-                AXIS2_LOG_LEVEL_DEBUG);
             break;
         
         case AXIS2_XML_READER_EMPTY_ELEMENT:
              axis2_om_stax_builder_create_om_element (
                         builder, env);
-         AXIS2_LOG_WRITE((*env)->log, "AXIS2_XML_READER_EMPTY_ELEMENT",
-                AXIS2_LOG_LEVEL_DEBUG);
         case AXIS2_XML_READER_END_ELEMENT:
             axis2_om_stax_builder_end_element (builder, env);
-         AXIS2_LOG_WRITE((*env)->log, "AXIS2_XML_READER_END_ELEMENT",
-                AXIS2_LOG_LEVEL_DEBUG);
             break;
         
         
         case AXIS2_XML_READER_SPACE:
-         AXIS2_LOG_WRITE((*env)->log, "AXIS2_XML_READER_SPACE",
-                AXIS2_LOG_LEVEL_DEBUG);
             /* Do nothing */
             break;
         
         case AXIS2_XML_READER_CHARACTER:
             axis2_om_stax_builder_create_om_text(builder, env);
-         AXIS2_LOG_WRITE((*env)->log, "AXIS2_XML_READER_CHARACTER",
-                AXIS2_LOG_LEVEL_DEBUG);
             break;
                 
         case AXIS2_XML_READER_ENTITY_REFERANCE:
@@ -963,16 +944,12 @@
         case AXIS2_XML_READER_COMMENT:
             axis2_om_stax_builder_create_om_comment(builder, env);
             axis2_om_stax_builder_end_element (builder, env);
-            AXIS2_LOG_WRITE((*env)->log, "AXIS2_XML_READER_COMMENT",
-                AXIS2_LOG_LEVEL_DEBUG);
             break;
         
         case AXIS2_XML_READER_PROCESSING_INSTRUCTION:
             axis2_om_stax_builder_create_om_processing_instruction(
                                         builder , env );
             axis2_om_stax_builder_end_element (builder, env);
-            AXIS2_LOG_WRITE((*env)->log, "AXIS2_XML_READER_PROCESSING_INSTRUCTION",
-                AXIS2_LOG_LEVEL_DEBUG);
             break;
         
         case AXIS2_XML_READER_CDATA: