for(Iterator it = communities.iterator(); it.hasNext();)
Hashtable list = (Hashtable)totalList.get("Communities"); for(Enumeration enums = list.keys(); enums.hasMoreElements();)
    private void showAllCommunities(String format)    {      StringBuffer xmlsb = new StringBuffer();      xmlsb.append(xmlTitle);      xmlsb.append("<communities>\n");      for(Iterator it = communities.iterator(); it.hasNext();)      {        String community = (String)it.next();        xmlsb.append("  <community name=\"" + community + "\"/>\n");      }      xmlsb.append("</communities>\n");      String xml = xmlsb.toString();      if(format.equals("xml"))        showXML(xml);      else      {        String html = getHTMLFromXML(xml, "communities.xsl");        out.print(html);      }    }