{"id":1000654,"date":"2007-05-22T07:47:59","date_gmt":"2007-05-22T12:47:59","guid":{"rendered":"http:\/\/www.elharo.com\/blog\/software-development\/web-development\/2007\/05\/22\/warcraft-goes-xml\/"},"modified":"2022-04-28T10:15:52","modified_gmt":"2022-04-28T14:15:52","slug":"warcraft-goes-xml","status":"publish","type":"post","link":"https:\/\/www.elharo.com\/blog\/software-development\/xml\/2007\/05\/22\/warcraft-goes-xml\/","title":{"rendered":"WarCraft goes XML"},"content":{"rendered":"<p>I noticed this morning that the main <a href=\"http:\/\/www.worldofwarcraft.com\/index.xml\">World of Warcraft site<\/a> is indeed raw XML styled with XSLT. They&#8217;re serving straight XML directly to browsers. It appears to be mostly well-formed HTML (but not XHTML) wrapped up inside a custom <code>page<\/code> element.<\/p>\n<p>I&#8217;m not quite sure why they&#8217;re doing this. It seems like an extra burden just for a different root element, but maybe the stylesheet does a little more. Hmm, looks like they&#8217;re using XSLT as a client-side templating language. Not bad. Saves them bandwidth and server-side processing I expect. <\/p>\n<p>Interestingly the HTML includes some JavaScript. JavaScript inside XML didn&#8217;t used to work, even after a  transformation to HTML. I&#8217;m guessing at least some browsers have gotten smarter about that. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I noticed this morning that the main World of Warcraft site is indeed raw XML styled with XSLT. They&#8217;re serving straight XML directly to browsers. It appears to be mostly well-formed HTML (but not XHTML) wrapped up inside a custom page element. I&#8217;m not quite sure why they&#8217;re doing this. It seems like an extra [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[410],"class_list":["post-1000654","post","type-post","status-publish","format-standard","hentry","category-xml","tag-flash"],"_links":{"self":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/1000654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/comments?post=1000654"}],"version-history":[{"count":1,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/1000654\/revisions"}],"predecessor-version":[{"id":1005602,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/1000654\/revisions\/1005602"}],"wp:attachment":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/media?parent=1000654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/categories?post=1000654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/tags?post=1000654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}