Hi all I have been developing my website for a few years now using PHP and MySQL and am trying to stay up with technology like I have recently made my site W3C XHtml Strict compliant (what fun

) and have recently started using AJAX on my site...
Hi all
I have been developing my website for a few years now using PHP and MySQL and am trying to stay up with technology like I have recently made my site W3C XHtml Strict compliant (what fun

) and have recently started using AJAX on my site
(even more fun lol) and I recently came across a big problem auto-generating XML files on the fly from my database for use in SPRY datasets, the problem occurs when you try to define the XML doc type to tell the browser to treat the rest of the page as XML, who would believe that this simple line can totally kill your script!!
It looks straight-forward enough but this one line will stop your web page with a fatal error ... I scratched my head for weeks trying to sort out this problem and the solution is so simple I just had to share it with you all.
The error is caused by the fact that on any php enabled website the opening
' ;
?>
A typical script may contain something like this:
And that should parse with no problems, I hope this will prove helpful to anyone else that may be experiencing a similar problem and help people that are trying to use AJAX/SPRY/Javascript scripting on their websites for the first time.
Moderators please feel free to edit or move this post as you think fit
Good luck to you all
