{"id":1045,"date":"2006-08-04T11:38:06","date_gmt":"2006-08-04T18:38:06","guid":{"rendered":"http:\/\/lee.org\/blog\/?p=1045"},"modified":"2006-08-04T11:41:53","modified_gmt":"2006-08-04T18:41:53","slug":"should-xml-cdata-be-shown-in-your-browser","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2006\/08\/04\/should-xml-cdata-be-shown-in-your-browser\/","title":{"rendered":"Should XML CDATA be shown in your browser?"},"content":{"rendered":"<p>I just spent 1\/4 of a day diagnosing a problem that got totally wiped out because, as it turns out, Firefox and IE display XML differently.<\/p>\n<p>In IE, <a href=\"http:\/\/www.rocketboom.com\/vlog\/index.xml\">rocketboom&#8217;s XML<\/a> looks like this:<\/p>\n<blockquote><p>&lt;title>rb_06_aug_04&lt;\/title><br \/>\n&#8211; &lt;description><br \/>\n&#8211; &lt;![CDATA[ &lt;p>&lt;b>story links:&lt;\/b> &lt;a href=&#8221;http:\/\/www.racewalk.com&#8221; targe\n<\/p><\/blockquote>\n<p>While the same file looks like this in Firefox:<\/p>\n<blockquote><p>\n&lt;title>rb_06_aug_04&lt;\/title><br \/>\n\u00e2\u02c6\u2019<br \/>\n\t&lt;description><br \/>\n&lt;p>&lt;b>story links:&lt;\/b> &lt;a href=&#8221;http:\/\/www.racewalk.com&#8221; targe&#8230;.<\/p><\/blockquote>\n<p>Hey! Firefox doesn&#8217;t show the CDATA tag! If you look in the source, it&#8217;s still there, Firefox just doesn&#8217;t show it in the browser. Should it?<\/p>\n<p>On one hand, when you look at XML files, you just want to see <strong>everything<\/strong> since it&#8217;s machine code anyway. Maybe a little formatting would be nice and colors to go easy on the eyes but that&#8217;s it.   On the other hand, it shouldn&#8217;t be shown because it&#8217;s meta-data. Grrrrrrr. Why can&#8217;t everything just be simple?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just spent 1\/4 of a day diagnosing a problem that got totally wiped out because, as it turns out, Firefox and IE display XML differently. In IE, rocketboom&#8217;s XML looks like this: &lt;title>rb_06_aug_04&lt;\/title> &#8211; &lt;description> &#8211; &lt;![CDATA[ &lt;p>&lt;b>story links:&lt;\/b> &lt;a href=&#8221;http:\/\/www.racewalk.com&#8221; targe While the same file looks like this in Firefox: &lt;title>rb_06_aug_04&lt;\/title> \u00e2\u02c6\u2019 &lt;description> [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1045","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/1045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=1045"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/1045\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=1045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=1045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=1045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}