xml.append("</populationMission>\n");
return xml.toString();
}
public PopulationMission initializeFromNode(Realm realm, Node node) {
PopulationMission populationMission = new PopulationMission();
Node populationNode = XMLConverterUtility.findNode(node, "population");
int population = Integer.parseInt(populationNode.getFirstChild().getNodeValue());
populationMission.setPopulation(population);
initializeMissionFromNode(realm, node, populationMission);
initializeMissionRewardsFromNode(realm, node, populationMission);
return populationMission;
}