Author: chamikara
Date: Wed Jul 19 19:54:53 2006
New Revision: 423728

URL: http://svn.apache.org/viewvc?rev=423728&view=rev
Log:
Fixing a bug. The while loop searches for the next start tag withoug 
considesing the scenario where current node is the start tag.

Modified:
    
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java

Modified: 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java?rev=423728&r1=423727&r2=423728&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
 Wed Jul 19 19:54:53 2006
@@ -142,7 +142,9 @@
             // position reader to start tag
             XMLStreamReader reader = getDirectReader();
             try {
-                while (reader.next() != XMLStreamConstants.START_ELEMENT);
+               if (reader.getEventType()!= XMLStreamConstants.START_ELEMENT) {
+                   while (reader.next() != XMLStreamConstants.START_ELEMENT);
+               }
             } catch (XMLStreamException e) {
                 log.error("forceExpand: error parsing data soruce document for 
element " +
                     getLocalName(), e);



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

Reply via email to