poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1812531 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
Date Wed, 18 Oct 2017 14:40:05 GMT
Author: onealj
Date: Wed Oct 18 14:40:05 2017
New Revision: 1812531

URL: http://svn.apache.org/viewvc?rev=1812531&view=rev
Log:
fix compile error

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java?rev=1812531&r1=1812530&r2=1812531&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java Wed Oct 18
14:40:05 2017
@@ -485,7 +485,8 @@ public class XSSFExportToXml implements
         NodeList  list  = localComplexTypeRootNode.getChildNodes();
         String complexTypeName = "";
 
-        for(final Node node : list) {
+        for(int i=0; i<list.getLength(); i++) {
+            final Node node = list.item(i);
             if ( node instanceof Element && "element".equals(node.getLocalName()))
{
                 Node nameAttribute = getNameOrRefElement(node);
                 if (nameAttribute.getNodeValue().equals(elementNameWithoutNamespace)) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message