I’m having trouble using XHTML with PHP. The XML Prolog creates an error.
This is what I'm using:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN”
“http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
I found this solution below, but it adds “\n"; ?>” to the top of the page:
<?php echo "><?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"; ?>
Do you know of any workaround?