469,287 Members | 2,357 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

XML tree not displaying in IE7

33
Hi,

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

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2.     <feed>
  3.         <title>Transaction Details</title>
  4.         <records>
  5.                 <transaction>
  6.                 <tID>1</tID>
  7.                 <uID>1567YTY01</uID>
  8.                 <Commission>125.00</Commission>
  9.                 <Status>Hold</Status>
  10.                 <mID>M184</mID>
  11.                 <Type>3</Type>                
  12.                 <Date>2009-02-10</Date>
  13.                 </transaction>
  14.     </records>
  15. </feed>
  16.  
  17.  
pls help me urgently.. thanks in advance


Ruth
May 17 '10 #1
4 3424
RuthC
33
Ohh , No luck.. Its driving me mad.. pls help me somebody...
Im getting error like this 'feed format not supported'
Ruth.
May 17 '10 #2
jkmyoung
2,057 Expert 2GB
what's the extension of your file? .xml? .rss?
May 17 '10 #3
RuthC
33
Extension is .xml I want the out put in xml tree format.
pls help me urgently..
Ruth.
May 18 '10 #4
Atli
5,058 Expert 4TB
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:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <root>
  3.     <title>Transaction Details</title>
  4.     <records>
  5.         <transaction>
  6.             <tID>1</tID>
  7.             <uID>1567YTY01</uID>
  8.             <Commission>125.00</Commission>
  9.             <Status>Hold</Status>
  10.             <mID>M184</mID>
  11.             <Type>3</Type>
  12.             <Date>2009-02-10</Date>
  13.         </transaction>
  14.     </records>
  15. </root>
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.)
May 23 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by David | last post: by
1 post views Thread by Adalbert | last post: by
3 posts views Thread by Saradhi | last post: by
8 posts views Thread by marar.harish | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.