axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r395218 - /webservices/axis2/trunk/java/xdocs/latest/OMTutorial.html
Date Wed, 19 Apr 2006 11:41:24 GMT
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



Mime
View raw message