private void outputCampaigns(Properties ctx,PrintWriter out,int campaignID,boolean includeAny){
  out.println("<campaigns>");
  if (includeAny) {
    out.println("<campaign id='-1'");
    if (campaignID == 0)     out.println(" selected='selected'");
    out.println(">ANY</campaign>");
  }
  out.println("<campaign id='1'>Rose Festival</campaign>");
  out.println("</campaigns>");
}

private void outputCampaigns ( Properties ctx , PrintWriter out , int campaignID , boolean includeAny ) { out . println ( "<campaigns>" ) ; if ( includeAny ) { out . println ( "<campaign id='-1'" ) ; if ( campaignID == 0 ) out . println ( " selected='selected'" ) ; out . println ( ">ANY</campaign>" ) ; } out . println ( "<campaign id='1'>Rose Festival</campaign>" ) ; out . println ( "</campaigns>" ) ; }
output xml list of campaigns
