in reply to
xml/html detection script
You also have to take into consideration that the server might not return the proper content-type if it isn't configured properly.
Comment on
Re: xml/html detection script
In Section
Seekers of Perl Wisdom