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!
Asked
Active
Viewed 7,379 times
3
-
possible duplicate of [Converting HTML to XML](http://stackoverflow.com/questions/10473875/converting-html-to-xml) – Evan Oct 29 '13 at 01:19
-
1You can't simply convert your HTML sitemap, have a read here: https://www.google.com/search?q=google+xml+sitemap+generator, https://support.google.com/webmasters/answer/183668?hl=en&ref_topic=8476, https://code.google.com/p/sitemap-generators/wiki/SitemapGenerators – Wesley Murch Oct 29 '13 at 01:21
1 Answers
1
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/

Matthew Lock
- 13,144
- 12
- 92
- 130