XML tree not displaying in IE7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RuthC
    New Member
    • Nov 2007
    • 33

    XML tree not displaying in IE7

    Hi,

    My feed is not showing in IE7, working fine in FF,chrome and IE6,
    here is the code

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    	<feed>
    		<title>Transaction Details</title>
    		<records>
    				<transaction>
    				<tID>1</tID>
    				<uID>1567YTY01</uID>
    				<Commission>125.00</Commission>
    				<Status>Hold</Status>
    				<mID>M184</mID>
    				<Type>3</Type>				
    				<Date>2009-02-10</Date>
    				</transaction>
    	</records>
    </feed>
    pls help me urgently.. thanks in advance


    Ruth
  • RuthC
    New Member
    • Nov 2007
    • 33

    #2
    Ohh , No luck.. Its driving me mad.. pls help me somebody...
    Im getting error like this 'feed format not supported'
    Ruth.

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      what's the extension of your file? .xml? .rss?

      Comment

      • RuthC
        New Member
        • Nov 2007
        • 33

        #4
        Extension is .xml I want the out put in xml tree format.
        pls help me urgently..
        Ruth.

        Comment

        • Atli
          Recognized Expert Expert
          • Nov 2006
          • 5062

          #5
          Hey.

          I just came across a similar problem, and I discovered two things.
          1. It seems that IE assumes that any XML with a <feed> node is a RSS feed. And as such, instead of parsing it as generic XML and showing the tree, it sends it through a RSS specific parser, which then fails because the XML is not compliant with any RSS specification, giving an error like:
            Internet Explorer does not support this feed format.
            And it goes on to specify a list of supported RSS standards.
          2. It does not accept any character set except Unicode. When trying to use an ISO charset, I get a message reading:
            Switch from current encoding to specified encoding not supported. Error processing resource 'http://localhost/test/text.xml...
            Although, given the text of the message, it seems it may be able to convert some character sets to Unicode automatically.


          Therefore, to get your example working, you would either have to modify it to implement one of the RSS standards, or change the charset and rename the <feed> node into something more generic. This seems to work:
          [code=xml]<?xml version="1.0" encoding="UTF-8"?>
          <root>
          <title>Transact ion Details</title>
          <records>
          <transaction>
          <tID>1</tID>
          <uID>1567YTY0 1</uID>
          <Commission>125 .00</Commission>
          <Status>Hold</Status>
          <mID>M184</mID>
          <Type>3</Type>
          <Date>2009-02-10</Date>
          </transaction>
          </records>
          </root>[/code]

          P.S.
          Note that I am using IE8, not IE7. I suspect they both (mis)behave similarly though. (I don't have a IE7 installation available to me atm, so I can' test it.)

          Comment

          Working...