in modules/implementation-widget-runtime/src/main/resources/atomModel.js [1476:1553]
this.toXML = function() {
xml = "<feed";
if ( this.namespace != null ) {
xml += " namespace=\"" + this.namespace + "\"";
}
if ( this.uri != null ) {
xml += " uri=\"" + this.uri + "\"";
}
if ( this.lang != null ) {
xml += " lang=\"" + this.lang + "\"";
}
xml += ">\n";
if ( this.title != null ) {
xml += this.title.toXML( "title" );
}
if ( this.subtitle != null ) {
xml += this.subtitle.toXML( "subtitle" );
}
if ( this.id != null ) {
xml += this.id.toXML();
}
if ( this.published != null ) {
xml += "<published>" + this.published + "</published>\n";
}
if ( this.updated != null ) {
xml += "<updated>" + this.updated + "</updated>\n";
}
if ( this.authors != null ) {
for ( var i = 0; i < this.authors.length; i++ ) {
var author = this.authors[ i ];
xml += author.toXML( "author" );
}
}
if ( this.contributors != null ) {
for ( var i = 0; i < this.contributors.length; i++ ) {
var contributor = this.contributors[ i ];
xml += contributor.toXML( "contributor" );
}
}
if ( this.categories != null ) {
for ( var i = 0; i < this.categories.length; i++ ) {
var category = this.categories[ i ];
xml += category.toXML();
}
}
if ( this.links != null ) {
for ( var i = 0; i < this.links.length; i++ ) {
var link = this.links[ i ];
xml += link.toXML();
}
}
if ( this.rights != null ) {
xml += this.rights.toXML( "rights" );
}
if ( this.source != null ) {
xml += "<source>" + this.source + "</source>\n";
}
if ( this.logo != null ) {
xml += "<logo>" + this.logo + "</logo>\n";
}
if ( this.icon != null ) {
xml += "<icon>" + this.icon + "</icon>\n";
}
if ( this.generator != null ) {
xml += this.generator.toXML( "generator" );
}
if ( this.summary != null ) {
xml += this.summary.toXML( "summary" );
}
if ( this.entries != null ) {
for ( var i = 0; i < this.entries.length; i++ ) {
var entry = this.entries[ i ];
xml += entry.toXML();
}
}
xml += "</feed>\n";
return xml;
}