125126127128129130131132133134135
while (_amount > 0) remove(0); for (XmlNode child : node.getChildren(Pokemon.XML_NODE_NAME)) { Pokemon p = new Pokemon(1); p.loadXml(child); add(p); } } public Iterator<Pokemon> iterator() {