public void store(Element root){
  Element values=new Element(Xml.SCHEDULES);
  List<TrainSchedule> schedules=getSchedulesByIdList();
  for (  TrainSchedule schedule : schedules) {
    values.addContent(schedule.store());
  }
  root.addContent(values);
}

public void store ( Element root ) { Element values = new Element ( Xml . SCHEDULES ) ; List < TrainSchedule > schedules = getSchedulesByIdList ( ) ; for ( TrainSchedule schedule : schedules ) { values . addContent ( schedule . store ( ) ) ; } root . addContent ( values ) ; }
create an xml element to represent this entry . this member has to remain synchronized with the detailed dtd in operations - trains . dtd .
