473,320 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

XHTML displaying in IE 6 as XML

So I'm now inspired to jump on the Web standards bandwagon. I've used
CSS for font control for some time, but haven't moved to it for
positioning. Great time to kill two birds with one stone, so I jump
in.

I create a needed page and it's fantastic when viewed in my browser of
choice, Mozilla Firebird. So I tinker with it, then switch over to IE
and view it and... it renders as the XML tree.

I tinker a bit, then finally I just open a new doc in Dreamweaver,
note it to be XHTML complaint, save it with just a line of text, and
still it loads as XML. Here's the simple doc:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
</head>

<body>
<P>testing</P>
</body>
</html>

Now what in the heck is wrong here?

Amy
Jul 20 '05 #1
3 3424
On 9 Oct 2003 08:29:48 -0700, al*****@bluemarble.net (Amy Young-Leith)
wrote:
I create a needed page and it's fantastic when viewed in my browser of
choice, Mozilla Firebird. So I tinker with it, then switch over to IE
and view it and... it renders as the XML tree.


That sounds likely, Internet Explorer is not an XHTML user agent,
along with most other user agents in fact.

I'd strongly recommend sticking with HTML 4.01, since most of the
world uses HTML user agents.

HTML 4.01 is just as "standards bandwagon" as XHTML, it just happens
to actually work at the same time.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2
Amy Young-Leith:
I create a needed page and it's fantastic when viewed in my browser of
choice, Mozilla Firebird. So I tinker with it, then switch over to IE
and view it and... it renders as the XML tree. I tinker a bit, then finally I just open a new doc in Dreamweaver,
note it to be XHTML complaint, save it with just a line of text, and
still it loads as XML. Here's the simple doc: <?xml version="1.0" encoding="iso-8859-1"?>
[...]
That sure looks like XML to me.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
MSIE doesn't handle XHTML. It's an old broken browser.
Now what in the heck is wrong here?


If you want MSIE to be able to digest XHTML (a form of XML),
you'll have to write it using a lot a compatibility tricks,
and then serve it as "text/html" from the server. You'll
also have to ditch the xml declaration on the top, which
means you'll have to switch to the encoding UTF-8, or
correctly declare the encoding in the http header.

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>

Jul 20 '05 #3
On Thu, 09 Oct 2003 17:40:59 +0200, Bertilo Wennergren
<be******@gmx.net> wrote:
You'll
also have to ditch the xml declaration on the top, which
means you'll have to switch to the encoding UTF-8, or
correctly declare the encoding in the http header.


Ludicrously you don't have to ditch the xml declaration to recieve the
blessing of Appendix C. it justs warns you about UA's showing it.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tjerk Wolterink | last post by:
Why o Why does a browser treat this xml file as an xhtml file. <!DOCTYPE xc:content > <xc:xcontent xmlns:xc="http://www.wolterinkwebdesign.com/xml/xcontent"...
20
by: John Bokma | last post by:
Hi, I converted most (not all) of my pages at http://johnbokma.com/ to XHTML. I thought this was just a small change from 4.01. However someone stated quite vaguely that my pages are *not*...
30
by: Patrick | last post by:
Hello, i'm trying to get my page to XHTML 1.1 compliance, i used the validator from validator.w3.org but i still get one error message which i cant explain. Would be nice if someone can take a...
23
by: Gustaf | last post by:
I just read this article from today: http://webstandards.org/buzz/archive/2005_09.html I need some help understanding this sentense: The W3C recommends XHTML 1.1 should be served with the...
0
by: psid | last post by:
Displaying HTML/XHTML from source XML file i am having an xml file i want to display the contents of the xml file in a web browser control in winforms however i want to display it as...
19
by: Bert Lancaster | last post by:
I'm not actually using it on the web but can anyone tell me why the ID attribute on a <style> tag causes an error in the W3C validator for an XHTML 1.1 document? It doesn't have a problem for a...
1
by: shalini jain | last post by:
Hi, I am being faced with a strange problem... I wrote a code for displaying pages in HTML and hence was using HTML parser. Now i am using the same code but now parsing using XHTML that is i want...
7
by: C.W.Holeman II | last post by:
For info on the context of my question see the end of this posting. From http://www.w3.org/TR/XHTMLplusMathMLplusSVG/: How can I validate the result of client-side XSLT transform which has...
13
by: mark4asp | last post by:
When I write a url in xhtml, with an unencoded ampersand, like this: http://localhost:2063/Client/ViewReport.aspx?Ref=58&Type=SUMMARY the xhtml sytax checker correctly indicates an error,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.