Skip to content

Commit

Permalink
ensure we export all the content on output to XML
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbw committed Jan 5, 2012
1 parent e4075cb commit 911dff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/org/xcri/core/Course.java
Expand Up @@ -65,6 +65,7 @@ public Element toXml() {
Element element = super.toXml();
if (this.getPresentations()!= null) for (Presentation presentation:this.getPresentations()) element.addContent(presentation.toXml());
if (this.getQualifications()!= null) for (Qualification qualification:this.getQualifications()) element.addContent(qualification.toXml());
if (this.getCredits()!= null) for (Credit credit:this.getCredits()) element.addContent(credit.toXml());
return element;
}

Expand Down
1 change: 1 addition & 0 deletions src/org/xcri/core/Presentation.java
Expand Up @@ -75,6 +75,7 @@ public Element toXml() {
// TODO Engagement
if (this.getStudyMode() != null) element.addContent(this.getStudyMode().toXml());
if (this.getAttendanceMode() != null) element.addContent(this.getAttendanceMode().toXml());
if (this.getAttendancePattern() != null) element.addContent(this.getAttendancePattern().toXml());
return element;
}

Expand Down

0 comments on commit 911dff9

Please sign in to comment.