axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r689866 - /webservices/axis2/trunk/c/axiom/src/om/om_children_qname_iterator.c
Date Thu, 28 Aug 2008 16:03:52 GMT
Author: damitha
Date: Thu Aug 28 09:03:51 2008
New Revision: 689866

URL: http://svn.apache.org/viewvc?rev=689866&view=rev
Log:
Adding log messages

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

Modified: webservices/axis2/trunk/c/axiom/src/om/om_children_qname_iterator.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_children_qname_iterator.c?rev=689866&r1=689865&r2=689866&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_children_qname_iterator.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_children_qname_iterator.c Thu Aug 28 09:03:51
2008
@@ -125,13 +125,13 @@
     axiom_children_qname_iterator_t * iterator,
     const axutil_env_t * env)
 {
-    AXIS2_ENV_CHECK(env, AXIS2_FALSE);
-
     while (iterator->need_to_move_forward)
     {
         if (iterator->current_child)
         {
             axiom_element_t *om_element = NULL;
+            axutil_qname_t *element_qname = NULL;
+
             if (axiom_node_get_node_type(iterator->current_child, env) ==
                 AXIOM_ELEMENT)
             {
@@ -140,11 +140,22 @@
                                                                     current_child,
                                                                     env);
             }
+           
+            if(om_element)
+            {
+                element_qname = axiom_element_get_qname(om_element, env, iterator->current_child);
+                AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "[axiom] element_qname:%s", 
+                        axutil_qname_get_localpart(element_qname, env));
+            }
+
+            if(iterator->given_qname)
+            {
+                AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "[axiom] iterator->given_qname:%s",

+                    axutil_qname_get_localpart(iterator->given_qname, env));
+            }
 
             if (om_element &&
-                axutil_qname_equals(axiom_element_get_qname
-                                    (om_element, env, iterator->current_child),
-                                    env, iterator->given_qname))
+                axutil_qname_equals(element_qname, env, iterator->given_qname))
             {
                 iterator->matching_node_found = AXIS2_TRUE;
                 iterator->need_to_move_forward = AXIS2_FALSE;



Mime
View raw message