/** @return xml-element containing current lookup data */ public Element exportToXML() { DefaultElement country = new DefaultElement("CountryLookup"); Set<String> codeKeys = countryLookup.keySet(); for (String code : codeKeys) { DefaultElement countryXml = new DefaultElement("CountryKey"); countryXml.addAttribute("code", code); countryXml.addAttribute("countryGeoIP", getGeoIpCountryName(code)); countryXml.addAttribute("countryPingEr", getPingErCountryName(code)); countryXml.addAttribute("regionPingEr", getPingErRegionName(code)); country.add(countryXml); } return country; }