can somone tell me what this means and how to fix it please
[xML]

Invalid at the top level of the document. Error processing resource 'http://freeaddsgalore.me.uk/sitemap.xml'. Line 1, Pos...
<?xml version="1.0" encoding="ISO-8859-1"?>[/xml]

Member Avatar for GreenDay2001

the code is not very clear, either tell me the line clearly or five the whole xml file.

here is the whole code

<?xml version="1.0" encoding="ISO-8859-1"?>
- <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
- <url>
  <loc>http://freeaddsgalore.me.uk/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>weekly</changefreq> 
  <priority>1.0</priority> 
  </url>
- <url>
  <loc>http://freeaddsgalore.me.uk/exlinks.html/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>monthly</changefreq> 
  <priority>0.1</priority> 
  </url>
- <url>
  <loc>http://freeaddsgalore.me.uk/effectiveads.html/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>weekly</changefreq> 
  <priority>0.7</priority> 
  </url>
- <url>
  <loc>http://freeaddsgalore.me.uk/fbtips.html/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>monthly</changefreq> 
  <priority>0.5</priority> 
  </url>
- <url>
  <loc>http://freeaddsgalore.me.uk/seopr.html/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>weekly</changefreq> 
  <priority>0.6</priority> 
  </url>
- <url>
  <loc>http://freeaddsgalore.me.uk/freetools.html/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>weekly</changefreq> 
  <priority>0.8</priority> 
  </url>
- <url>
  <loc>http://freeaddsgalore.me.uk/seopr.html/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>weekly</changefreq> 
  <priority>0.7</priority> 
  </url>
- <url>
  <loc>http://freeaddsgalore.me.uk/fapage2.html/</loc> 
  <lastmod>2006-07-08</lastmod> 
  <changefreq>weekly</changefreq> 
  <priority>0.6</priority> 
  </url>
  </urlset>
Member Avatar for GreenDay2001

there's nothing wrong with your xmls first line. But whats wrong is

- <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
- <url>

i mean to say that you have inserted ' - ' before every URL and URLSET element.

Here's the modified code

<?xml version="1.0" encoding="ISO-8859-1"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
    <url>
        <loc>http://freeaddsgalore.me.uk/</loc>
        <lastmod>2006-10-08</lastmod>
        <changefreq>weekly</changefreq>
        <priority>1.0</priority>
    </url>
    <url>
        <loc>http://freeaddsgalore.me.uk/exlinks.html/</loc>
        <lastmod>2006-10-08</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.1</priority>
    </url>a
    <url>
        <loc>http://freeaddsgalore.me.uk/effectiveads.html/</loc>
        <lastmod>2006-10-08</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url> - <url>
        <loc>http://freeaddsgalore.me.uk/fbtips.html/</loc>
        <lastmod>2006-10-08</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.5</priority>
    </url>
    <url>
        <loc>http://freeaddsgalore.me.uk/seopr.html/</loc>
        <lastmod>2006-10-08</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url> - <url>
        <loc>http://freeaddsgalore.me.uk/freetools.html/</loc>
        <lastmod>2006-10-08</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>http://freeaddsgalore.me.uk/seopr.html/</loc>
        <lastmod>2006-10-08</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.7</priority>
    </url>
    <url>
        <loc>http://freeaddsgalore.me.uk/fapage2.html/</loc>
        <lastmod>2006-07-08</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>
</urlset>

oh righty. thanks. i did have it working at one point untill i started using dreamweaver, might have inserted it automatically when i opened the file with dreamweaver.
thanks again for your help your a star

hi there,

vishesh is right!

' - ' there was the problem

and also you can use this:

<?xml version="1.0" encoding="UTF-8"?>
<urlset
  xmlns="http://www.google.com/schemas/sitemap/0.84"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
                      http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

 <url>
  <loc>http://freeaddsgalore.me.uk/</loc> 
  <lastmod>2006-10-08</lastmod> 
  <changefreq>weekly</changefreq> 
  <priority>1.0</priority> 
  </url>

Continue......

Rahul

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.