Tuesday, November 16, 2010

Internet Explorer 9 Beta does not display XML files in tree view

The lifestory of XML files support in Internet Explorer passed many phases: pure text view in IE5 and IE6, animated tree view in IE7 with expanding and collapsing nodes, security warning for blocked content in IE8.

The newest version of IE – IE9 – does not display XML files in a tree view anymore. It displays the sequence of text values of all the XML document nodes – but neither nodes tags nor nodes hierarchy information.

Assume an XML file sample.xml:

<?xml version="1.0" encoding="utf-8"?>
<InternetBrowsers>
  <InternetBrowser>
    <Product>Internet Explorer</Product>
    <Version>7</Version>
    <Manufacturer>Microsoft</Manufacturer>
  </InternetBrowser>
  <InternetBrowser>
    <Product>Internet Explorer</Product>
    <Version>8</Version>
    <Manufacturer>Microsoft</Manufacturer>
  </InternetBrowser>
  <InternetBrowser>
    <Product>Internet Explorer</Product>
    <Version>9</Version>
    <Manufacturer>Microsoft</Manufacturer>
  </InternetBrowser>
</InternetBrowsers>

This file is shown in IE9 as follows:
image

The problem is, on most Windows based systems the Internet Explorer is the only program to view XML files (except Notepad as Editor – but not as comfortable quick viewer).

Looking forward to get tree view XML viewing back in final version of IE9 to enjoy it again…

4 comments:

cawoodm said...

I have the same problem on IE9 Beta but it used to work. None of the solutions googled so far have solved this...

Anonymous said...

no it wasnt

Anonymous said...

It seams that only XML-Files which are not well-formated are not displayes any longer. So in earlier versions of IE at least an error message was displayed on the screan which could help to find the error in the xml.

winmike said...

Just tested with IE9 and IE10 CTP - seems to bi true: not well-formed XML documents wouldn't be displayed at all. Same time the view of page source does display the XML contents properly - again without any error messages...