DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   RSS, Web Services and SOAP (http://www.daniweb.com/forums/forum151.html)
-   -   xml header trouble? (http://www.daniweb.com/forums/thread57204.html)

bazmanblue Oct 5th, 2006 6:45 pm
xml header trouble?
 
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]

vishesh Oct 19th, 2006 9:53 am
Re: xml header trouble?
 
the code is not very clear, either tell me the line clearly or five the whole xml file.

bazmanblue Oct 19th, 2006 9:55 am
Re: xml header trouble?
 
here is the whole code
[HTML]<?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>[/HTML]

vishesh Oct 20th, 2006 2:19 am
Re: xml header trouble?
 
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>


bazmanblue Oct 20th, 2006 2:30 am
Re: xml header trouble?
 
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

katarey Oct 25th, 2006 12:14 pm
Re: xml header trouble?
 
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


All times are GMT -4. The time now is 8:27 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC