XML Sitemaps Generator

    Advanced search
Sitemap Generator Forum
July 05, 2008, 02:49:05 PM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Sitemap software 2.9 released - Email notifications, html sitemap customizing and more
6620 Posts in 1636 Topics by Members
Latest Member: alec.simmons
Pages: [1]
  Print  
Author Topic: Parsing Error - no document type declaration  (Read 15306 times)
Nigel
Newbie
*
Posts: 4


View Profile
« on: October 11, 2005, 12:29:20 PM »

I'm new to this and recently generated my new sitemap online.
I followed all the instructions, uploaded to my website and submitted it to Google.

I get the following Error.

Sitemap Errors  Parsing error (Line 2)   We were unable to read your Sitemap.
It may contain an entry we are unable to recognise. Please validate your Sitemap before resubmitting.


The first few lines of the code autogenerated online and uploaded were:

<?xml version="1.0" encoding="UTF-8" ?>
- <urlset xmlns="[external links are visible to admins only]" xmlns:xsi="[external links are visible to admins only]" xsi:schemaLocation="[external links are visible to admins only] [external links are visible to admins only]">

I try to Validate and get:
Below are the results of attempting to parse this document with an SGML parser.
Error Line 1 column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".
<html>

Can anyone tell me what should be changed or what to do next?

Thanks
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #1 on: October 11, 2005, 02:43:29 PM »

Hi,
please let us know the url of your sitemap to check it.
Logged

Nigel
Newbie
*
Posts: 4


View Profile
« Reply #2 on: October 12, 2005, 11:11:13 AM »

Thanks for the reply.
My sitemap is located at [external links are visible to admins only]

At the moment it's a straight "cut and paste" from the code generated online so I don't understand why it's doing this.

Cheers
Nigel
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #3 on: October 12, 2005, 12:05:39 PM »

Hi Nigel,
you should NOT copy'n'paste it, but right click at the "Download un-compressed XML Sitemap" link on the "Generated sitemap is ready" page and save it to your computer. Then upload this file to your host.
(since browser renders xml files not "as is", but with inserting of special characters, like "-" for the tree nodes)
Logged

Nigel
Newbie
*
Posts: 4


View Profile
« Reply #4 on: October 13, 2005, 10:58:06 AM »

OK, thanks.
The "right click save as" option completed and my new sitemap.xml uploaded.
BUT, I tried to validate [external links are visible to admins only] at [external links are visible to admins only]
and still got the same error as follows?

Try it!


This page is not Valid XML!
Below are the results of checking this document for XML well-formedness and validity.

Error Line 2 column 0: no document type declaration; will parse without validation.
<urlset

Where too from here?
Thanks
Nigel
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #5 on: October 13, 2005, 11:54:55 AM »

Hi Nigel,

the service you are referring to DOESN'T validate XML documents (html only):
Quote
This is the W3C Markup Validation Service, a free service that checks Web documents in formats like HTML and XHTML for conformance to W3C Recommendations and other standards.
Logged

Nigel
Newbie
*
Posts: 4


View Profile
« Reply #6 on: October 13, 2005, 12:55:24 PM »

OK, sorry! My fault.
I sort of got to the [external links are visible to admins only] site from Google's help comments about validating your sitemap but obviously didn't understand what I was doing.
Anyway Google has now accepted my sitemap and I'm a happy bunny!

Many thanks for your help.
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #7 on: October 13, 2005, 08:16:37 PM »

Glad to hear that, you're welcome Smiley
Logged

Patrickdk
Newbie
*
Posts: 1


View Profile
« Reply #8 on: January 01, 2006, 01:58:56 PM »

Hi,

I have the same problem. I have download the "un-compressed XML Sitemap" and then upload this file to myhost. But wenn a add my site to google it tell "Parsing error (Line 2) " Huh

My site is now locatede at: [external links are visible to admins only]

Can anyone tell me what should be changed or what to do next?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!