Hi Samisa, This is the inconsistency that I was talkng about in the previous mail.
axiom_node_t *node = NULL, *n1 = NULL, *n2 = NULL, *n3 = NULL, *n4; axis2_char_t *out = NULL; axiom_element_t *e1, *e2 = NULL, *e3 = NULL, *e4 = NULL; axiom_namespace_t *nmsp = NULL; env = axutil_env_create_all("test.log", 1); if (!env) return NULL; nmsp = axiom_namespace_create(env, NS, "test"); e1 = axiom_element_create(env, NULL, "local1", nmsp, &n1); e2 = axiom_element_create(env, n1, "child1", nmsp, &n2); out = axiom_node_to_string(n1, env); /* assume following code is written in another method that we don't have access to the original nmsp because e1 and e2 creation works fine with the same namespace I would expect that e3 and e4 will also work*/ nmsp = axiom_namespace_create(env, NS, "test"); e3 = axiom_element_create(env, n1, "child2", nmsp, &n3); out = axiom_node_to_string(n1, env); /* when we debug we see that nmsp is still non-null although it is being freed*/ e4 = axiom_element_create(env, n1, "child3", nmsp, &n4); out = axiom_node_to_string(n1, env); The above code works until the creation of e3. I think I was little bit off the point in the previous mail. This happened to me while ago and I guess I forgot the details. Sorry for that. Regards, Supun.. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]