468,511 Members | 1,691 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,511 developers. It's quick & easy.

XHTML: browser rendering parse tree instead. Why?

Hello,

When I save the following file with the .xhtml or .xml extension I get
the XML parse tree and the following message instead of the actual
document.

This XML file does not appear to have any style information
associated with it. The document tree is shown below.

I wonder if anyone could explain the above message. Even when I place
<style>
information in the <head> element I still get the same message.

Thanks,

Neil

<?xml version="1.0"?>
<!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">
<head>
<title>?</title>
</head>
<body>
</body>
</html>
Jul 20 '05 #1
1 4189

Aha! A missing or incorrectly written namespace can cause such a serious
error (altough the error message was useless). The XML Namespace should
have been:

<html xmlns="http//www.w3.org/1999/xhtml">

That fixes it.

Regards,

Neil

On 7 Jul 2003, Neil Zanella wrote:
This XML file does not appear to have any style information
associated with it. The document tree is shown below.
[snip]
<?xml version="1.0"?>
<!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">

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

24 posts views Thread by Nobody | last post: by
14 posts views Thread by Bill Thoralina | last post: by
37 posts views Thread by Roedy Green | last post: by
10 posts views Thread by oopaevah | last post: by
32 posts views Thread by jp29 | last post: by
16 posts views Thread by Mcginkel | last post: by
12 posts views Thread by Alex D. | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.