Standalone XML documents can be viewed as collapsable document trees in Mozilla (1.4 in my test) and Internet Explorer (v5.2.3) on the Mac platform. Both browsers will correctly show errors if the XML document is not well formed. Mozilla shows a little extra info at the top of there’s no style information attached, and Mozilla also has a slight rendering bug that occasionally happens with the spacing between some of the characters occasionally appearing a little too scrunched up together. I can’t figure out what triggers this display bug, but it’s no big deal anyway.
The latest versions of Safari and Camino fail to parse the data as a tree and just display the data as if they were unrecognized HTML tags in the document. OmniWeb 4.5 sometimes displays source, and sometimes displays just text – either way failing, but with inconsistent results. CDATA strings seem to make OmniWeb want to try to display text instead of source. Weird. Anyway, the latest versions of Mozilla and Internet Explorer on Mac seem to work properly, and that’s today’s fun tip for hacking XML on Mac OS X!