ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r391226 - /webservices/axis2/trunk/c/modules/xml/om/om_document.c
Date Tue, 04 Apr 2006 05:32:46 GMT
Author: nandika
Date: Mon Apr  3 22:32:44 2006
New Revision: 391226

URL: http://svn.apache.org/viewcvs?rev=391226&view=rev
Log:
axis2_om_document_build_all method modified 

Modified:
    webservices/axis2/trunk/c/modules/xml/om/om_document.c

Modified: webservices/axis2/trunk/c/modules/xml/om/om_document.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_document.c?rev=391226&r1=391225&r2=391226&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_document.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_document.c Mon Apr  3 22:32:44 2006
@@ -207,7 +207,7 @@
         return NULL;            /* Nothing wrong but done with pulling */
     
     last_child = AXIS2_OM_STAX_BUILDER_NEXT (document->builder, env);
-    if(!last_child)
+    if(NULL != last_child)
         document->last_child = last_child;
     return last_child;
 }
@@ -230,7 +230,7 @@
     {  
         node = axis2_om_document_build_next(document, env);
             
-        if (NULL != doc_impl->root_element)
+        if(NULL != doc_impl->root_element)
         {
             
             return doc_impl->root_element;
@@ -293,10 +293,21 @@
          do{ 
             axis2_om_node_t *ret_val = NULL;
             ret_val = AXIS2_OM_DOCUMENT_BUILD_NEXT(document,env);
-            if(!ret_val)
-              return NULL;
-            }while( !AXIS2_OM_NODE_GET_BUILD_STATUS(doc_impl->root_element,env));
-        
+                if(!ret_val)
+                {
+                    if(AXIS2_OM_NODE_GET_BUILD_STATUS(doc_impl->root_element, env) 
+                            == AXIS2_TRUE)
+                    {
+                        /** document is completly build */
+                        return doc_impl->root_element;
+                    }
+                    else
+                    {
+                        /** error occured */
+                        return NULL;
+                    }            
+                }
+           }while( !AXIS2_OM_NODE_GET_BUILD_STATUS(doc_impl->root_element,env));
         return doc_impl->root_element;
     }
     else



Mime
View raw message