Results 1 to 15 of 15

Thread: Displaying XML type files in IE

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  2. #2

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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...

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  8. #8

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Displaying XML type files in IE

    This part:

    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."

  9. #9
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Displaying XML type files in IE

    Yes and now I am confused
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  10. #10

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  11. #11
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Displaying XML type files in IE

    As you requested.
    Attached Images Attached Images  
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  12. #12

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

  13. #13

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Displaying XML type files in IE

    Btw, this is what mine looks like...
    Attached Images Attached Images  

  14. #14
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    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
    TPM

    Add yourself to the VBForums Frappr Map!!

  15. #15

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width