From 5bb69d945832ea6f40c7efaca4dfd7f6b0731846 Mon Sep 17 00:00:00 2001 From: nandika Date: Tue, 29 Jun 2010 18:42:28 +0000 Subject: bug in processing empty element fixed git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@959070 13f79535-47bb-0310-9956-ffa450edef68 --- axiom/src/om/om_document.c | 2 +- axiom/src/om/om_stax_builder.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'axiom/src') diff --git a/axiom/src/om/om_document.c b/axiom/src/om/om_document.c index 0d4d276..47301a8 100644 --- a/axiom/src/om/om_document.c +++ b/axiom/src/om/om_document.c @@ -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; diff --git a/axiom/src/om/om_stax_builder.c b/axiom/src/om/om_stax_builder.c index de13c9c..2dd767a 100644 --- a/axiom/src/om/om_stax_builder.c +++ b/axiom/src/om/om_stax_builder.c @@ -566,7 +566,7 @@ axiom_stax_builder_create_om_processing_instruction( 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) -- cgit v1.1-32-gdbae