git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1812531 13f79535-47bb-0310-9956-ffa450edef68tags/REL_4_0_0_FINAL
@@ -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)) { |