Help! XML Parsing Error: XML or text declaration not at start of entity

Started by MyInfoStride, Feb 14, 2012, 01:58 AM

MyInfoStride

I am having problem with my sitemap. It returns the follow error.

I search the forums but could not find out the solution. I saw one possible cause of the error... (2 empty lines at the begining of the files which I confirmed in the source files. Please help!

Opera:
XML parsing failed

XML parsing failed: syntax error (Line: 3, Character: 0)

Reparse document as HTML
Error:
XML declaration not at beginning of document
Specification:
[url=http://www.w3.org/TR/REC-xml/]Extensible Markup Language (XML) 1.0 (Fifth Edition)[/url]
  1:
  2:
  3: <?xml version="1.0" encoding="UTF-8"?>
  4: <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  5: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6: xsi:schemaLocation="[url=http://www.sitemaps.org/schemas/sitemap/0.9]www.sitemaps.org - /schemas/sitemap/0.9/[/url]


Firefox:
XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.theinfostride.com/forum/index.php?action=sitemap;xml
Line Number 3, Column 1:<?xml version="1.0" encoding="UTF-8"?>
^


Chrome:
This page contains the following errors:

error on line 3 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.