xml.append("</explorationMission>\n");
return xml.toString();
}
public ExplorationMission initializeFromNode(Realm realm, Node node) {
ExplorationMission explorationMission = new ExplorationMission();
Node explorationPercentNode = XMLConverterUtility.findNode(node, "explorationPercent");
int explorationPercent = Integer.parseInt(explorationPercentNode.getFirstChild().getNodeValue());
explorationMission.setExplorationPercent(explorationPercent);
initializeMissionFromNode(realm, node, explorationMission);
initializeMissionRewardsFromNode(realm, node, explorationMission);
return explorationMission;
}