Browse Source

fix compile error

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1812531 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_4_0_0_FINAL
Javen O'Neal 6 years ago
parent
commit
3a7e3846d5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java

+ 2
- 1
src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java 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)) {

Loading…
Cancel
Save