TreeSet<String> clientsAdded = new TreeSet<String>();
for (String c : clients) {
Client cc = ConnectionDrivers.listClients(c).get(0);
if ( !clientsAdded.contains(cc.getId()) ){
IXMLElement client = clienXML.createElement("C");
client.setAttribute("ID", cc.getId());
String tname = cc.getName();
client.setAttribute("Name", tname.substring(0,Math.min(35, tname.length())));
String tc = cc.getAddress() + " Tlf: " + cc.getPhone();
client.setAttribute("Addr", (tc).substring(0, Math.min(30,tc.length())));