public ArrayList<ActivitySchedule> getSchedule() {
    ArrayList<ActivitySchedule> schedule = new ArrayList<ActivitySchedule>();
    if (this.document == null) {
      return schedule;
    }
    NodeList actscheds = document.getFirstChild().getChildNodes();
    for (int i = 0; i < actscheds.getLength(); i++) {
      NamedNodeMap attrs = actscheds.item(i).getAttributes();
      String digest = attrs.getNamedItem("digest").getTextContent();
      String startDateString = attrs.getNamedItem("startdate").getTextContent();
      String endDateString = attrs.getNamedItem("enddate").getTextContent();

      DateTime sdt = MobileLearning.DATETIME_FORMAT.parseDateTime(startDateString);
      DateTime edt = MobileLearning.DATETIME_FORMAT.parseDateTime(endDateString);

      ActivitySchedule as = new ActivitySchedule();
      as.setDigest(digest);
      as.setStartTime(sdt);
      as.setEndTime(edt);
      schedule.add(as);
    }
    return schedule;
  }
 public void setDateTime(String date) {
   this.datetime = MobileLearning.DATETIME_FORMAT.parseDateTime(date);
   ;
 }