Forum Moderators: coopster
# Line 59, column 45: "DOCTYPE" declaration not allowed in instance
...rsion="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1
^
# Line 60, column 42: document type does not allow element "html" here (explain...).
<html xmlns="http://www.w3.org/1999/xhtml">
I have discovered the reason is that when I save my file with the php code and run it on my server it always inserts:
<?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>
</body>
</html>
Where my code sits in the source file.
Can anyone tell me of a means to avoid this occuring?
Cheers
[webmasterworld.com...]
The problem in this case is not actually DW, DW saves the code exactly as I want it to (except when using templates, which I have decided not to use for php pages).
The problem is when the code is processed by my web server. It seems to be the web server that is inserting the superfluous code after processing the page.