XML page cannot be displayed on html page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kjhngisd
Forum Newbie
Posts: 3
Joined: Thu Jun 11, 2009 2:43 pm

XML page cannot be displayed on html page

Post by kjhngisd »

Hi gentlepeople.

I'm stuck. I'm not really a php dev, but got a php task thrown at me. It's great, it's done, everyone's happy.

*Except* (knew that was coming didn't you?)

Some of the people who hit the intranet site are getting this error:
"The XML page cannot be displayed..... " <stuff clipped>
"The server did not understand the request..." <stuff clipped>
"Error processing resource http://www.w3.org/TR/xhtm.... (not clipped).

If i do a view source on the page I see:
<?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" lang="en" xml:lang="en">

before the head tag.

i think this is causing issues with older browsers that some of the folks are using (IE6 seems to be the main issue).

SO my questions:
1. The xml tags must be being generated automatically by php? Is there a way to suppress this? Or make it more cross-browser?

2. The page is not (intentionally) using xhtml. Looking at the html, I don't see anything except td's and tr's and other html-type things. So, why am I getting this at all?

Help save a php noob from certain destruction by XML. Please??
thanks for any thoughts on this.
--kevin
Post Reply