Author: nandika
Date: Tue Jun 29 18:42:28 2010
New Revision: 959070
URL: http://svn.apache.org/viewvc?rev=959070&view=rev
Log:
bug in processing empty element fixed
Modified:
axis/axis2/c/core/trunk/axiom/src/om/om_document.c
axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c
Modified: axis/axis2/c/core/trunk/axiom/src/om/om_document.c
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/axiom/src/om/om_document.c?rev=959070&r1=959069&r2=959070&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/axiom/src/om/om_document.c (original)
+++ axis/axis2/c/core/trunk/axiom/src/om/om_document.c Tue Jun 29 18:42:28 2010
@@ -102,7 +102,7 @@ axiom_document_get_root_element(
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Unable to get root
node");
return NULL;
}
- }while(token != AXIOM_XML_READER_START_ELEMENT);
+ }while(token != AXIOM_XML_READER_START_ELEMENT &&
!document->root_element);
}
return document->root_element;
Modified: axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c
URL:
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c?rev=959070&r1=959069&r2=959070&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c (original)
+++ axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c Tue Jun 29 18:42:28
2010
@@ -566,7 +566,7 @@ axiom_stax_builder_create_om_processing_
axiom_node_set_first_child(om_builder->lastnode, env, pi_node);
axiom_node_set_parent(pi_node, env, om_builder->lastnode);
}
-
+ axiom_node_set_builder(pi_node, env, om_builder);
om_builder->element_level++;
if(target)