diff options
author | nandika | 2010-06-29 18:42:28 +0000 |
---|---|---|
committer | nandika | 2010-06-29 18:42:28 +0000 |
commit | 5bb69d945832ea6f40c7efaca4dfd7f6b0731846 (patch) | |
tree | f6c2fad11c1d8c1241ea4ef6d92729b27849a569 /axiom | |
parent | 81c283ae333c76203aa069f2121cbda5e32d4e7a (diff) | |
download | axis2c-5bb69d945832ea6f40c7efaca4dfd7f6b0731846.tar.gz axis2c-5bb69d945832ea6f40c7efaca4dfd7f6b0731846.tar.bz2 |
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
Diffstat (limited to 'axiom')
-rw-r--r-- | axiom/src/om/om_document.c | 2 | ||||
-rw-r--r-- | axiom/src/om/om_stax_builder.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) |