sboag 01/05/15 11:12:42
Modified: java/src/org/apache/xml/dtm/sax2dtm Tag: DTM_EXP
SAX2DTM.java
Log:
Minor tweaking of calls to nextNode().
Revision Changes Path
No revision
No revision
1.1.2.10 +6 -5
xml-xalan/java/src/org/apache/xml/dtm/sax2dtm/Attic/SAX2DTM.java
Index: SAX2DTM.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/sax2dtm/Attic/SAX2DTM.java,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -r1.1.2.9 -r1.1.2.10
--- SAX2DTM.java 2001/05/15 17:57:26 1.1.2.9
+++ SAX2DTM.java 2001/05/15 18:12:28 1.1.2.10
@@ -569,9 +569,8 @@
while (identity >= m_size)
{
- if (m_coroutineParser == null)
+ if(null == m_coroutineParser)
return DTM.NULL;
-
nextNode();
}
@@ -1117,16 +1116,18 @@
{
Integer intObj;
-
+ boolean isMore = true;
do
{
intObj = (Integer) m_idAttributes.get(elementId);
if (null != intObj)
return intObj.intValue();
-
- if(false == nextNode())
+
+ if(!isMore || m_endDocumentOccured)
break;
+
+ isMore = nextNode();
}
while(null == intObj);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]