ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r373790 - /webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMStAXWrapper.java
Date Tue, 31 Jan 2006 11:11:57 GMT
Author: ruchithf
Date: Tue Jan 31 03:11:49 2006
New Revision: 373790

URL: http://svn.apache.org/viewcvs?rev=373790&view=rev
Log:
getXMLStreamReaderWithoutCaching() is working with ADB beans now :-)

Modified:
    webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMStAXWrapper.java

Modified: webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMStAXWrapper.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMStAXWrapper.java?rev=373790&r1=373789&r2=373790&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMStAXWrapper.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/OMStAXWrapper.java
Tue Jan 31 03:11:49 2006
@@ -856,15 +856,20 @@
                 } catch (Exception e) {
                     throw new XMLStreamException("problem accessing the parser", e);
                 }
-                // Initialize the depth
-                depth = 0;
-                // We should throw an END_DOCUMENT as well
+
+                // We should throw an END_DOCUMENT
                 needToThrowEndDocument = true;
                 if ((currentEvent == START_DOCUMENT) &&
                         (currentEvent == parser.getEventType())) {
                     currentEvent = parser.next();
                 } else {
                     currentEvent = parser.getEventType();
+                }
+
+                if(currentEvent == START_ELEMENT) {
+                    depth = 0;
+                } else if(currentEvent == END_ELEMENT) {
+                    depth ++;
                 }
                 updateCompleteStatus();
                 break;



Mime
View raw message