You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/04/17 10:59:39 UTC
svn commit: r394646 - in /webservices/axis2/trunk/c/modules/xml:
om/om_stax_builder.c soap/soap_builder.c
Author: nandika
Date: Mon Apr 17 01:59:37 2006
New Revision: 394646
URL: http://svn.apache.org/viewcvs?rev=394646&view=rev
Log:
element level setting corrected in om builder
Modified:
webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c
webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c
Modified: webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c?rev=394646&r1=394645&r2=394646&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_stax_builder.c Mon Apr 17 01:59:37 2006
@@ -564,6 +564,8 @@
axis2_om_node_set_parent(comment_node , env, builder_impl->lastnode);
}
+ builder_impl->element_level++;
+
AXIS2_XML_READER_XML_FREE(builder_impl->parser , env, comment_value);
builder_impl->lastnode = comment_node;
@@ -614,6 +616,8 @@
AXIS2_ENV_CHECK(env, NULL);
builder_impl = AXIS2_INTF_TO_IMPL(builder);
+
+
target = AXIS2_XML_READER_GET_PI_TARGET (builder_impl->parser, env);
value = AXIS2_XML_READER_GET_PI_DATA(builder_impl->parser, env);
if (!target)
@@ -645,6 +649,9 @@
axis2_om_node_set_first_child(builder_impl->lastnode , env, pi_node);
axis2_om_node_set_parent(pi_node , env, builder_impl->lastnode);
}
+
+ builder_impl->element_level++;
+
if(target)
AXIS2_XML_READER_XML_FREE(builder_impl->parser , env, target);
if(value)
@@ -665,7 +672,7 @@
builder = AXIS2_INTF_TO_IMPL(om_stax_builder);
builder->element_level--;
-
+
if (builder->lastnode)
{
if (AXIS2_OM_NODE_GET_BUILD_STATUS((builder->lastnode), env))
Modified: webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c?rev=394646&r1=394645&r2=394646&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_builder.c Mon Apr 17 01:59:37 2006
@@ -62,6 +62,7 @@
int last_node_status;
axis2_bool_t done;
+
}axis2_soap_builder_impl_t;
typedef enum axis2_builder_last_node_states
@@ -821,8 +822,10 @@
return AXIS2_FAILURE;
}
/*HACK: to fix AXIS2C-129 - Samisa*/
+ /*
axis2_om_stax_builder_set_element_level(
builder_impl->om_builder, env, 1);
+ */
}
}
return AXIS2_SUCCESS;