Could someone help me understand why my list does not have all the children of my element? (JDOM Element class) I wanted to send the items from the list to setters in another Class.
if (attributeValue.equals(name)) {
Object k = element;
if (k instanceof Element) {
Element keyElement = (Element) k;
List keyNameChild = keyElement.getChildren();
Iterator childIterator = keyNameChild.iterator();
while (childIterator.hasNext()) {
System.out.println("count: " + count);
count++;
Object knc = childIterator.next();
if (knc instanceof Element) {
Element keyNameElement = (Element) knc;
String elementName = keyNameElement.getName();
String elementValue = keyNameElement.getValue();
//System.out.println("call #: "+count);
System.out.println("XMLReaderProgressions sends Progressions a elementName and elementValue");
System.out.println("elementName: " + elementName);
System.out.println("elementValue: " + elementValue);
Progression p = new Progression();
p.progressionFields(elementName, elementValue);
System.out.println("back for another name and value");
//count++;
process(keyElement);
}
}
}
}