Displaying XML type files in IE
Copy paste this into notepad:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v4.2 -->
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
Save it as an XML file.
Drag it into IE.
You'll notice how it's all nice and formatted.
Now, change the extension of the .xml file to, say, .jdfx
Drag it into IE.
It shows up as text.
How can I get it to show up like an XML file would?
Notes:
This shows up fine in FF.
This SEEMS to be a limitation of IE.
Re: Displaying XML type files in IE
No, it seems to be a setting missing in either Windows or IE.
Some of my coworkers can view it as an XML document, some get it as text.
Any ideas what's missing?
Re: Displaying XML type files in IE
Believe it or not, IE has got it right. If you drag and drop a file into Internet Explorer you are viewing it on the local system and hence IE is entirely reliant on the operating system to work out the context of the file. Internet Explorer simply looks to see whether or not the file is text or binary, if it is text it displays it as plain text and if it is a binary file it displays the familiar save dialog.
This is a the right thing to do because there is no garuntee that a text file with the <?xml ?> delcaration, is an XML file.
Firefox, makes an educated guess that the file is XML based on the declaration and parses it as such.
The story is different however when you download the file over HTTP. The browser should and must in fact then read the MIME type sent by the HTTP server and deal with file appropriatly, regardless of its extension. xml for example should be application/xml.
Re: Displaying XML type files in IE
Then how is it that some coworkers are able to view the JDFX file as a properly formatted XML file, complete with the expanding/collapsable nodes?
We have the same machine configurations, too. Windows 2003 SP1, IE 6, etc, etc.
Some coworkers have Windows XP SP2, and they can view the file as a formatted XML document too. I'm guessing you can't either.
But that still remains, how come THEY get to see it? Try associating the JDFX with XML Documents on your machine...
Re: Displaying XML type files in IE
Are the build numbers for IE the same. My compuer used to display them as text but now it formats it as xml and even applies a stylesheet if there is one.
Your work collegues haven't got "Hide Known File Extensions" enabled in their Folder options do they? :D
Re: Displaying XML type files in IE
Post a screenshot?
What's your IE build number?
Don't know about the 'Hide Known File Extensions' for them... I definitely have it disabled. I'll find out.
Re: Displaying XML type files in IE
I am using 6.0.2800.1106 on W2K SP5.
What do you want a screen shot of?
Re: Displaying XML type files in IE
This part:
Quote:
but now it formats it as xml and even applies a stylesheet if there is one.
Which I'm understanding as... "JDFX files show up as XML files on my computer."
Re: Displaying XML type files in IE
Yes and now I am confused :confused:
Re: Displaying XML type files in IE
Just open the JDFX file in IE, and post a screenshot of it.
I have used simple words for your comprehension.
1 Attachment(s)
Re: Displaying XML type files in IE
Re: Displaying XML type files in IE
What is it that makes your IE better than mine? Think of something, Dippy Delves... what do you have that is different from my configuration?
1 Attachment(s)
Re: Displaying XML type files in IE
Btw, this is what mine looks like...
Re: Displaying XML type files in IE
Hmm I just get text too, the realy trippy thing is if I hit refresh it removes all the tags :ehh:
Re: Displaying XML type files in IE
Interesting. You're right... it then is interpreted as HTML tags, without any effects.
Why do *I* find all the weird bugs?