22 Aug
2005
22 Aug
'05
1:43 p.m.
Note that although HTML and XML is permissive on the whitespace you output, if you do generate some other format (ie. csv file, image, swf file) with output buffering, and store the results elsewhere, additional whitespace in unintentional places can be a big pain. It is actually irrelevant if you use output buffering or not.
Neither HTML nor XML are permissive on leading whitespace. AFAIK HTML is invalid if there is leading whitespace before the <!DOCTYPE> while XML is invalid if the <?xml ?> prolog is not the very first thing in the file (mostly for encoding reasons). Yet another reason to get rid of ?>. Steven