Author: thilina
Date: Fri Sep 15 06:13:24 2006
New Revision: 446603

URL: http://svn.apache.org/viewvc?view=rev&rev=446603
Log:
A typo found and corrected by Sameera Madushan Jayasoma

Modified:
    webservices/commons/trunk/modules/axiom/src/site/xdoc/OMTutorial.xml

Modified: webservices/commons/trunk/modules/axiom/src/site/xdoc/OMTutorial.xml
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/site/xdoc/OMTutorial.xml?view=diff&rev=446603&r1=446602&r2=446603
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/site/xdoc/OMTutorial.xml 
(original)
+++ webservices/commons/trunk/modules/axiom/src/site/xdoc/OMTutorial.xml Fri 
Sep 15 06:13:24 2006
@@ -590,12 +590,12 @@
 <h2>Appendix</h2>
 <a name="1"></a>
 <h3>Program Listing for Complete OM - Build and Serialize</h3>
-<source><pre class="code">import org.apache.axiom.om.SOAPEnvelope;
-import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axis2.impl.llom.factory.OMXMLBuilderFactory;
+<source><pre class="code">import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.impl.builder.StAXOMBuilder;
 
-import javax.xml.stream.*;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
 import java.io.FileInputStream;
 import java.io.FileNotFoundException;
 
@@ -609,7 +609,8 @@
         try {
             //create the parser
             XMLStreamReader parser = 
XMLInputFactory.newInstance().createXMLStreamReader(new 
FileInputStream(args[0]));
-            //get the root element (in this case the envelope)
+            StAXOMBuilder builder = new StAXOMBuilder(parser);
+            //get the root element
             OMElement documentElement = builder.getDocumentElement();
 
             //dump the out put to console with caching



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to