summaryrefslogtreecommitdiffstats
path: root/axiom
diff options
context:
space:
mode:
Diffstat (limited to 'axiom')
-rw-r--r--axiom/src/om/om_document.c2
-rw-r--r--axiom/src/om/om_stax_builder.c2
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)