fix compile error

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1812531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-10-18 14:40:05 +00:00
parent 42c4e4909c
commit 49add35f3b

View File

@ -485,7 +485,8 @@ public class XSSFExportToXml implements Comparator<String>{
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)) {