You are here: Re: labels.xml file riddled with "errors"? « HTML « IT news, forums, messages
Re: labels.xml file riddled with "errors"?

Posted by Sherm Pendley on 07/27/07 18:38

"The Bicycling Guitarist" <Chris@TheBicyclingGuitarist.net> writes:

> "The Bicycling Guitarist" <Chris@TheBicyclingGuitarist.net> wrote in message
> news:bZeqi.291$0J2.122@newsfe03.lga...
>> The htmlhelp online validator used to just check this xml file for How do
>> I fix this? the page is at www.TheBicyclingGuitarist.net/labels.xml It's
>> been unchanged since January 2006. It's the VALIDATOR that has changed how
>> it regards this file. What should I do, please?
>
> I will redo the file using the ICRA label generator and see if that fixes
> the problem.

It won't. The problem is not the contents of the file, the problem is in
the HTTP headers your server is sending, more specifically the "Content-type"
header line.

> Does one need a different server header for individual pages that are not
> html, i.e., xml files?

Yes. Web browsers don't use file extensions to identify file types, they use
the MIME type listed in the "Content-type:" HTTP header. The generic type for
XML is application/xml, but some specific XML application types (XHTML, RSS,
XSLT, etc.) will also have their own specific MIME type.

> Everything on my site is apparently being sent as
> html even if it isn't html.

That's the problem. Your server is telling the validator that the file is
HTML, so it tries to validate it as HTML.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация