Author: mrglavas
Date: Sun Aug 13 20:53:40 2006
New Revision: 431287

URL: http://svn.apache.org/viewvc?rev=431287&view=rev
Log:
Fixing a bug reported by Lucian Holland on the j-dev list.
getPrefix() has a typo in the initial condition - both checks 
are for START_ELEMENT, rather than one being for END_ELEMENT.

Modified:
    
xerces/java/branches/stax-dev/src/org/apache/xerces/stax/SAXXMLStreamReaderImpl.java

Modified: 
xerces/java/branches/stax-dev/src/org/apache/xerces/stax/SAXXMLStreamReaderImpl.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/stax-dev/src/org/apache/xerces/stax/SAXXMLStreamReaderImpl.java?rev=431287&r1=431286&r2=431287&view=diff
==============================================================================
--- 
xerces/java/branches/stax-dev/src/org/apache/xerces/stax/SAXXMLStreamReaderImpl.java
 (original)
+++ 
xerces/java/branches/stax-dev/src/org/apache/xerces/stax/SAXXMLStreamReaderImpl.java
 Sun Aug 13 20:53:40 2006
@@ -899,7 +899,7 @@
      * @throws IllegalStateException if this is not a START_ELEMENT or 
END_ELEMENT
      */
     public String getPrefix() {
-        if(curType == XMLStreamConstants.START_ELEMENT || curType == 
XMLStreamConstants.START_ELEMENT) { 
+        if(curType == XMLStreamConstants.START_ELEMENT || curType == 
XMLStreamConstants.END_ELEMENT) { 
             String pre = null;
             String name = asp.getElementName();
             int indexPre = name.indexOf(":");



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

Reply via email to