You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/12/20 09:54:15 UTC
svn commit: r488978 - /webservices/axis2/trunk/c/axiom/src/om/om_text.c
Author: samisa
Date: Wed Dec 20 00:54:15 2006
New Revision: 488978
URL: http://svn.apache.org/viewvc?view=rev&rev=488978
Log:
Removed unnecessary creation of XOP namespace when text element is not NULL.
AXIS2C-478
Modified:
webservices/axis2/trunk/c/axiom/src/om/om_text.c
Modified: webservices/axis2/trunk/c/axiom/src/om/om_text.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_text.c?view=diff&rev=488978&r1=488977&r2=488978
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_text.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_text.c Wed Dec 20 00:54:15 2006
@@ -176,7 +176,7 @@
om_text->data_handler = NULL;
om_text->mime_type = NULL;
- om_text->ns = axiom_namespace_create(env, "http://www.w3.org/2004/08/xop/include", "xop");
+ om_text->ns = NULL;
if (value)
om_text->value = (axis2_char_t *) AXIS2_STRDUP(value, env);
@@ -490,6 +490,8 @@
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
om_text_impl = AXIS2_INTF_TO_IMPL(om_text);
local_name = axiom_text_get_localname(om_text, env);
+
+ om_text_impl->ns = axiom_namespace_create(env, "http://www.w3.org/2004/08/xop/include", "xop");
if (om_text_impl->ns)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org