archer9
archer9

Reputation: 73

How to build a Google Sitemap XML file from HTML

As part of SEO, I need to submit a website's sitemap to Google. But Google is rejecting it saying it is an HTML file and it needs an XML file. How does one convert HTML to XML? I've searched the Google Webmasters page and the net for answers but came up with nothing. Really appreciate it if someone could give some guidance on how to do this!

Upvotes: 5

Views: 8093

Answers (1)

Matthew Lock
Matthew Lock

Reputation: 13476

You probably don't want to convert your HTML sitemap to XML, you want to create an XML sitemap from scratch according to Google's sitemap specifications

You can either make this by hand in a text editor like notepad++, build a script to generate it, or use one of these tools: http://www.xml-sitemaps.com/

Upvotes: 1

Related Questions