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 ch...@apache.org on 2006/04/19 13:41:24 UTC
svn commit: r395218 -
/webservices/axis2/trunk/java/xdocs/latest/OMTutorial.html
Author: chinthaka
Date: Wed Apr 19 04:41:21 2006
New Revision: 395218
URL: http://svn.apache.org/viewcvs?rev=395218&view=rev
Log:
More improvements to OMTutorials.
Modified:
webservices/axis2/trunk/java/xdocs/latest/OMTutorial.html
Modified: webservices/axis2/trunk/java/xdocs/latest/OMTutorial.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/latest/OMTutorial.html?rev=395218&r1=395217&r2=395218&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/latest/OMTutorial.html (original)
+++ webservices/axis2/trunk/java/xdocs/latest/OMTutorial.html Wed Apr 19 04:41:21 2006
@@ -372,7 +372,7 @@
<p><b>Code Listing 7</b></p>
</div>
<pre class="code">Iterator children = root.getChildren();
-While(children.hasNext()){
+while(children.hasNext()){
OMNode node = (OMNode)children.next();
}</pre>
@@ -441,7 +441,10 @@
//dump the output to console with caching
envelope.serialize(writer);
writer.flush();</pre>
-<pre class="code"></pre>
+
+or simply
+
+<pre class="code"> System.out.println(root.toStringWithConsume()); </pre>
<p>The above mentioned features of the serializer forces a correct
serialization even if only a part of the OM tree is serialized. The following