I have this code, where I pick RSS-feed from a web-site. The idea is, that every monday, on each week, the RSS-feed changes in the website. What is the most easiest way to update the RSS in my code automatically? I'm using JavaScript and XML in my project.
Thanks in advance
EDIT: Posting the current code;
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title></title>
<!-- <description></description>
<link>http://www.sodexo.fi/</link>
<language>fi</language>
<copyright>Sodexo</copyright>
<pubDate>Mon, 17 Apr 2017 12:00:00 +0300</pubDate>
<lastBuildDate>Mon, 17 Apr 2017 12:00:00 +0300</lastBuildDate>
<generator>sxomenuoutput</generator>
<ttl>60</ttl> -->
<atom:link href="http://www.sodexo.fi/ruokalistat/rss/weekly_rss/873/fi" rel="self" type="application/rss+xml"/>
<item>
<title></title>
<description>
<![CDATA[
// Content that changes each week.
]]>
</description>
<!-- <link>http://www.sodexo.fi/frami</link> -->
<guid isPermaLink="false">http://www.sodexo.fi/frami/1492376400</guid>
<!--<pubDate>Mon, 17 Apr 2017 12:00:00 +0300</pubDate>
<source url="http://www.sodexo.fi/">Sodexo.fi</source> -->
</item>
</channel>
</rss>
To clarify; The content that is located inside of CDATA, changes each week. is there way to automatically update the changes inside my code?