Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > DOCTYPE error

Reply
Thread Tools

DOCTYPE error

 
 
Mike
Guest
Posts: n/a
 
      09-16-2006
Hi folks, I attempted to upload my simple website using IE and ftp and
received an error. Below is the top section of my code, below this is
the error IE gave me. Any help on how to correct this error would be
greatly appreciated! Mike Salish

The top part of my HTML coding

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
lang="en-US">
<head profile="http://www.w3.org/2000/08/w3c-synd/#"><meta
http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="keywords" content="bottlepal, zapcap, zap cap, zapacap, zap
a cap, bottle opener, novelty bottle opener, novelty" />
<meta name="description" content="Bottlepal bottle openers are unique
gadgets that make opening your bottled beverage a fun and unique
experience" />



BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

End tag 'div' does not match the start tag 'IMG'. Error processing
resource 'ftp://u40859955-mikesal:(E-Mail Removed)...

<div style="text-align: center;"><IMG
SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
ALT="lo...

 
Reply With Quote
 
 
 
 
Benjamin Niemann
Guest
Posts: n/a
 
      09-16-2006
Mike wrote:

> Hi folks, I attempted to upload my simple website using IE and ftp and
> received an error. Below is the top section of my code, below this is
> the error IE gave me. Any help on how to correct this error would be
> greatly appreciated! Mike Salish
>
> [snip]
>
> BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:
>
> The XML page cannot be displayed
> Cannot view XML input using XSL style sheet. Please correct the error
> and then click the Refresh button, or try again later.
>
>
> --------------------------------------------------------------------------------
>
> End tag 'div' does not match the start tag 'IMG'. Error processing
> resource 'ftp://SNIP:(E-Mail Removed)...

^^^^^^^^^
You have just posted the login credentials to your webspace.
*Change your password as soon as possible!!!*

> <div style="text-align: center;"><IMG
> SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
> ALT="lo...


The relevant part seems to be missing, but I think, you forgot to close the
IMG element (<IMG ... /> instead of <IMG ... >).

Element and attribute names are case-sensitive in XHTML, you'll have to use
lower case. Are you sure you need XHTML?

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
 
Reply With Quote
 
 
 
 
Jim Moe
Guest
Posts: n/a
 
      09-16-2006
Mike wrote:
> Hi folks, I attempted to upload my simple website using IE and ftp and
> received an error. Below is the top section of my code, below this is
> the error IE gave me. Any help on how to correct this error would be
> greatly appreciated! Mike Salish
>
> The top part of my HTML coding
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"


Delete the "<?xml ...?>" part. IE does not understand it and does not
like it.
Run your site through an [X]HTML validator:
<http://validator.w3.org/>
<http://www.htmlhelp.com/tools/validator/>

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      09-16-2006
Mike wrote:

> Hi folks, I attempted to upload my simple website using IE and ftp and
> received an error. Below is the top section of my code, below this is
> the error IE gave me. Any help on how to correct this error would be
> greatly appreciated! Mike Salish
>
> The top part of my HTML coding
>
> <?xml version="1.0" encoding="utf-8"?>


Then, after you change your password, remove the above first line, fix
the img element error, and resend the page to your web server.


> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


Doctype should be exactly as you show it here, uppercase and all.
<snip>

> End tag 'div' does not match the start tag 'IMG'. Error processing
> resource 'ftp://u40859955-mikesal:(E-Mail Removed)...
>
> <div style="text-align: center;"><IMG
> SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
> ALT="lo...


Image elements need to have a closing slash for XHTML, as do several
other elements.

<img src="..." alt="..." height="nnnpx" width="nnnpx" />

--
-bts
-Motorcycles defy gravity; cars just suck.
 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      09-17-2006
Jim Moe wrote:

> Delete the "<?xml ...?>" part. IE does not understand it and does not
> like it.


The problem with the <?xml ...?> part, with respect to IE, is that it throws
IE into "quirks mode". This is just a special case of IE's cluelessness in
"doctype sniffing": it treats _anything_ before a DOCTYPE declaration as
requesting compatibility with old, broken versions of IE, i.e. "quirks
mode". This need not be serious, and it might lack any observable effects,
though this depends on the page markup and especially the associated style
sheet(s).

IE does not understand XHTML _at all_, so skipping the <?xml ...?> part is
irrelevant. (Though it matters as "garbage before the DOCTYPE" to IE, in the
above-mentioned sense.)

Apparently the OP has the page in an environment where it is sent with HTTP
headers that specify the Internet media type as e.g. application/xml+xhtml
and not text/html. This is just fine except for the fact that it is
completely unsuitable in practice at present and in the near future in the
WWW context, where most people use IE, which fails to process that media
type in a useful way.

The morale is that XHTML should not be used as document distribution format
on the WWW anytime soon, but this fact has been presented and argumented so
many times in this group that I can safely leave it unmentioned here, can't
I?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
Jim Moe
Guest
Posts: n/a
 
      09-17-2006
Jukka K. Korpela wrote:
>
> The morale is that XHTML should not be used as document distribution format
> on the WWW anytime soon, but this fact has been presented and argumented so
> many times in this group that I can safely leave it unmentioned here, can't
> I?
>

Yes, indeed.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      09-17-2006

Benjamin Niemann wrote:
> Mike wrote:
>
> > Hi folks, I attempted to upload my simple website using IE and ftp and
> > received an error. Below is the top section of my code, below this is
> > the error IE gave me. Any help on how to correct this error would be
> > greatly appreciated! Mike Salish
> >
> > [snip]
> >
> > BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:
> >
> > The XML page cannot be displayed
> > Cannot view XML input using XSL style sheet. Please correct the error
> > and then click the Refresh button, or try again later.
> >
> >
> > --------------------------------------------------------------------------------
> >
> > End tag 'div' does not match the start tag 'IMG'. Error processing
> > resource 'ftp://SNIP:(E-Mail Removed)...

> ^^^^^^^^^
> You have just posted the login credentials to your webspace.
> *Change your password as soon as possible!!!*
>
> > <div style="text-align: center;"><IMG
> > SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
> > ALT="lo...

>
> The relevant part seems to be missing, but I think, you forgot to close the
> IMG element (<IMG ... /> instead of <IMG ... >).
>
> Element and attribute names are case-sensitive in XHTML, you'll have to use
> lower case. Are you sure you need XHTML?
>
> --
> Benjamin Niemann
> Email: pink at odahoda dot de
> WWW: http://pink.odahoda.de/


Thanks Benjamin, I have changed my password, someone did get into and
they uploaded a ton of files onto my domain, I removed them all and
things seem ok now. Mike

 
Reply With Quote
 
Benjamin Niemann
Guest
Posts: n/a
 
      09-18-2006
Mike wrote:
> Benjamin Niemann wrote:
>> Mike wrote:
>>
>> > End tag 'div' does not match the start tag 'IMG'. Error processing
>> > resource 'ftp://SNIP:(E-Mail Removed)...

>> ^^^^^^^^^
>> You have just posted the login credentials to your webspace.
>> *Change your password as soon as possible!!!*
>>

>
> Thanks Benjamin, I have changed my password, someone did get into and
> they uploaded a ton of files onto my domain, I removed them all and
> things seem ok now. Mike


Such blunders can quickly bite you. The evildoers are lurking behind every
corner - it's a cruel world (wide web)...

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Newbie - CSS Works With Invalid DOCTYPE. Fails With Valid DOCTYPE. Larry Lindstrom HTML 19 06-12-2012 02:07 PM
AJAX + Beta 2 - Error <!DOCTYPE... after instalation of BETA 2 SMichal ASP .Net 0 11-30-2006 02:27 PM
DOCTYPE declarations not generated by ASP.NET Neil Zanella ASP .Net 3 01-04-2005 11:18 PM
Setting DocType in Asp.Net Kenneth Keeley ASP .Net 1 06-30-2004 01:59 PM
vs.net creates doctype wrong? Ian ASP .Net 2 06-21-2004 12:32 PM



Advertisments