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/06 09:35:43 UTC
svn commit: r482962 - /webservices/axis2/trunk/c/xdocs/docs/om_tutorial.html
Author: samisa
Date: Wed Dec 6 00:35:40 2006
New Revision: 482962
URL: http://svn.apache.org/viewvc?view=rev&rev=482962
Log:
Applied patch by Milinda
Modified:
webservices/axis2/trunk/c/xdocs/docs/om_tutorial.html
Modified: webservices/axis2/trunk/c/xdocs/docs/om_tutorial.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xdocs/docs/om_tutorial.html?view=diff&rev=482962&r1=482961&r2=482962
==============================================================================
--- webservices/axis2/trunk/c/xdocs/docs/om_tutorial.html (original)
+++ webservices/axis2/trunk/c/xdocs/docs/om_tutorial.html Wed Dec 6 00:35:40 2006
@@ -767,17 +767,11 @@
<p></p>
<p><b>Code Listing 10</b></p>
</div>
-<pre>#include <axiom_node.h>
-#include <axis2.h>
+<pre>#include <axiom.h>
+#include <axis2_util.h>
#include <axis2_env.h>
-#include <axiom_element.h>
-#include <axiom_document.h>
-#include <axiom_stax_builder.h>
-#include <axiom_xml_reader.h>
#include <axis2_log_default.h>
#include <axis2_error_default.h>
-#include <axiom_xml_writer.h>
-#include <axiom_output.h>
#include <stdio.h>
FILE *f = NULL;
@@ -804,7 +798,7 @@
<b>return</b> env;
}
-build_and_serialize_om(axis2_env_t **env)
+build_and_serialize_om(axis2_env_t *env)
{
axiom_node_t *root_node = NULL;
@@ -827,7 +821,7 @@
om_builder = axiom_stax_builder_create(env, xml_reader);
<b>if</b>(!om_builder)
{
- AXIS2_XML_READER_FREE(xml_reader, env);
+ AXIOM_XML_READER_FREE(xml_reader, env);
<b>return</b> AXIS2_FAILURE;
}
document = AXIOM_STAX_BUILDER_GET_DOCUMENT(om_builder, env);
@@ -861,7 +855,7 @@
om_output = axiom_output_create(env, xml_writer);
AXIOM_NODE_SERIALIZE(root_node, env, om_output);
- buffer = (axis2_char_t*)AXIS2_XML_WRITER_GET_XML(xml_writer, env);
+ buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);
printf("The output XML is ->>>>\n %s ", buffer);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org