You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ch...@apache.org on 2006/07/20 04:54:54 UTC
svn commit: r423728 -
/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org