Allowing the shortened form <? may lead to an XML declaration like <?xml version="1.0" encoding="iso-8859-1"?> being misinterpreted as PHP :-( If necessary wrap it in PHP like: <?php echo '<?xml version="1.0" encoding="iso-8859-1"?>'; ?> James