Re: Re: Subject: PHP probs with XML docs
| From: | Neil Smith | Date: | Sat, 05 Apr 2003 08:51:29 +0000 |
| Subject: | Re: Re: Subject: PHP probs with XML docs | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19314@lists.php.net to get a copy of this message | ||
OK my reply got mangled because I had to put html markup in it heh - lets try that again :
<!DOCTYPE Doctype goes here>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title goes here</title>
</head>
<body>
Body text goes here
</body>
</html>
Note this doesn't contain the <xml ... > processing instruction.
Hope that's clearer.
Neil.
At 05:25 05/04/2003 +0000, I wrote:
Message-Id: <5.2.0.9.0.20030404155912.00a9d4a0@mail.uklinux.net> Date: Fri, 04 Apr 2003 16:00:59 +0100 To: Trystano@aol.com From: Neil Smith <neil@fresh-toast.uklinux.net> Cc: php-windows@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-WIN] Re: Subject: PHP probs with XML docs According to the xhtml spec, you should be sending the doctype tags and PIs like this : http://www.w3schools.com/xhtml/xhtml_syntax.asp <!DOCTYPE Doctype goes here> Body text goes here Which means that you should *not* hav a PI at the top specifying xml. So, if you send a header with content-type of xml but leave out the PI a the top of the document, what happens ? (NB : PHP will send content type text/html unless you specify otherwise ) Hope that helps Neil.