- Element program = factory.createElement("program");
- program.addElement("name").setText(getName());
- program.addElement("description").setText(getDescription());
- program.addElement("keywords").setText(getKeywords());
- program.addElement("channel").setText(getChannel());
- Element interval = program.addElement("interval");
- interval.addElement("begin").setText(getInterval().getBegin().toString());
- interval.addElement("end").setText(getInterval().getEnd().toString());
- return program;
+ Element program = factory.createElement(ELEM_PROGRAM);
+ program.addElement(ELEM_NAME).setText(getName());
+ program.addElement(ELEM_DESCRIPTION).setText(getDescription());
+ program.addElement(ELEM_KEYWORDS).setText(getKeywords());
+ program.addElement(ELEM_CHANNEL).setText(getChannel());
+ Element interval = program.addElement(ELEM_INTERVAL);
+ interval.addElement(ELEM_BEGIN_TIME).setText(
+ getInterval().getBegin().toString());
+ interval.addElement(ELEM_END_TIME).setText(
+ getInterval().getEnd().toString());
+ return program;