Binoy asked this 2 years ago

How to display xml sitemap file in an html table

I have a xml sitemap file which contains all site urls like this

 

urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://www.mysite.com/</loc>
<lastmod>2016-11-02</lastmod>
<changefreq>weekly</changefreq>
<priority>0.75</priority>
</url>
<url>
<loc>http://www.mysite.com/abcd/</loc>
<lastmod>2016-11-01</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>

 

I want to display this in an HTML table format like this

 

URL Last Modified Change Frequency Priority
http://www.mysite.com/ 2016-11-02 weekly 0.75
http://www.mysite.com/abcd1/ 2016-11-01 daily 1.0

No answers yet..