Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert Xml to rss
04-12-2015, 07:12 PM,
Post: #1
Convert Xml to rss
I want to convert my sitemap.xml to a .rss feed. How can I do this? Is there any software or online tool to do it? Plz help I need it hardly.
Reply
04-12-2015, 09:56 PM,
Post: #2
RE: Convert Xml to rss
(04-12-2015, 07:12 PM)uttam.paul69 Wrote: I want to convert my sitemap.xml to a .rss feed. How can I do this? Is there any software or online tool to do it? Plz help I need it hardly.

your sitemap.xml is static or dynamic?
normally sitemaps have only urls. But for rss feed we need url,title,description sample format would be like this.
PHP Code:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">

<channel>
  <title>W3Schools Home Page</title>
  <link>http://www.w3schools.com</link>
  <description>Free web building tutorials</description>
  <item>
    <title>RSS Tutorial</title>
    <link>http://www.w3schools.com/rss</link>
    <description>New RSS tutorial on W3Schools</description>
  </item>
  <item>
    <title>XML Tutorial</title>
    <link>http://www.w3schools.com/xml</link>
    <description>New XML tutorial on W3Schools</description>
  </item>
</channel>

</rss> 
http://apkdl.in Download latest version of any android apps or games for free.
http://hotwap.net watch live sex on mobile without download
Reply
04-13-2015, 06:59 AM,
Post: #3
RE: Convert Xml to rss
My sitemap is static
Reply
04-13-2015, 10:49 AM, (This post was last modified: 04-13-2015, 10:50 AM by tn69.)
Post: #4
RE: Convert Xml to rss
i assume you want rss for your blog site http://www.uttam-soft.tk/

here is your rss
http://feeds.feedburner.com/Uttam-soft
http://apkdl.in Download latest version of any android apps or games for free.
http://hotwap.net watch live sex on mobile without download
Reply
04-13-2015, 11:10 AM,
Post: #5
RE: Convert Xml to rss
Hehe! Big Grin I know that bro. Actually I need an rss feed for my other sites which are hosted on cpanel. I have a sitemap of 20,000 urls. So, I want to make a feed of that sitemap.
Reply
04-13-2015, 01:44 PM, (This post was last modified: 04-13-2015, 01:44 PM by tn69.)
Post: #6
RE: Convert Xml to rss
can you tell your sitemap url ?
http://apkdl.in Download latest version of any android apps or games for free.
http://hotwap.net watch live sex on mobile without download
Reply
04-13-2015, 05:44 PM,
Post: #7
RE: Convert Xml to rss
Here it is: http://apkstore.gq/sitemap.xml
Reply
04-14-2015, 12:13 AM,
Post: #8
RE: Convert Xml to rss
(04-13-2015, 05:44 PM)uttam.paul69 Wrote: Here it is: http://apkstore.gq/sitemap.xml

i think your site uses mysql database.
so you can do like this. this is a dynamic rss feed.
PHP Code:
<?php

mysql_connect
('localhost','username','password');
mysql_select_db('database');
$query=mysql_query('select title,url,description from file_table order by id desc');
while(
$row=mysql_fetch_object($query))
{
$items.='<item>
    <title>'
.$row->title.'</title>
    <link>'
.$row->url.'</link>
    <description>'
.$row->description.'</description>
  </item>'
;
}

echo 
'<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>'
.$items.'
</channel>
</rss>'
;
?>

modify this according to your site database table structure that holds file information.
http://apkdl.in Download latest version of any android apps or games for free.
http://hotwap.net watch live sex on mobile without download
Reply
04-14-2015, 06:43 AM,
Post: #9
RE: Convert Xml to rss
Ok thanks
Reply
07-31-2020, 09:09 PM,
Post: #10
RE: Convert Xml to rss
RSS is an XML-based format so you could potentially use XSL-T - that is the answer to your question. Following problems will however arise:

RSS is a Feed - a sequence of events distributed in time, does you XML semantically match that?
RSS is only one possible Feed format, may be Atom is more suitable for you
How would you like to consume your RSS feed, what are the use-cases.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)