List<RMPModel> rml = rs.getProfInfo(instructors);
StringBuilder builder=new StringBuilder();
builder.append("<rmp>\n");
//String out = "<rmp>\n";
for (Iterator<RMPModel> i = rml.iterator(); i.hasNext();) {
RMPModel rm = i.next();
builder.append("\t<instructor>\n");
//out += "\t<instructor>\n";
if(rm.getName().isEmpty())
builder.append( "\t\t<name>Not available</name>\n");
//out += "\t\t<name>Not available</name>\n";
else
builder.append("\t\t<name>" + rm.getName() + "</name>\n");
//out += "\t\t<name>" + rm.getName() + "</name>\n";
builder.append("\t\t<rating>" + rm.getRating() + "</rating>\n");
//out += "\t\t<rating>" + rm.getRating() + "</rating>\n";
builder.append("\t\t<url>" + rm.getUrl() + "</url>\n");
builder.append("\t</instructor>\n");
// out += "\t\t<url>" + rm.getUrl() + "</url>\n";
// out += "\t</instructor>\n";
}
if (rml.size() == 0){