You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app.get('/rss/:s1',function(req,res,next){
console.log('Attempting to return feeds for:',req.params.s1);
var feedObj = new Feed({
title: 'Karan Kapoor',
description: 'Karan Kapoor\'s content feed',
link: 'http://somenet/rss/karan_kapoor',
author : {
name:'Karan Kapoor',
link:'http://somenet/#!/karan_kapoor'
}
});
feedObj.addItem({
title: 'Intro to Karan Kapoor',
description: 'Something Something',
link: 'http://somenet/#!/karan_kapoor',
date: new Date()
});
var feedXml = feedObj.render();//feed.xml({indent:true});
res.set('Content-Type', 'text/xml');
res.send(feedXml);
console.log('Feed XML is :: ',feedXml);
});
And I get the following error on the page when I open the feed
This page contains the following errors:
error on line 16 at column 29: Namespace prefix content on encoded is not defined
Below is a rendering of the page up to the first error.
I'm using the following code to create a feed
And I get the following error on the page when I open the feed
This page contains the following errors:
error on line 16 at column 29: Namespace prefix content on encoded is not defined
Below is a rendering of the page up to the first error.
Karan Kapoor Karan Kapoor's content feed http://somenet/rss/karan_kapoor Wed, 12 Aug 2015 11:18:19 GMT http://blogs.law.harvard.edu/tech/rss Feed for Node.js http://somenet/#!/karan_kapoor http://somenet/#!/karan_kapoor Wed, 12 Aug 2015 11:18:19 GMT Something something
How can I fix this?
When I print the output of the feed on the console, I get
Also, how do I get rid of the CDATA in the feed content?
The text was updated successfully, but these errors were encountered: