View Single Post
  #2 (permalink)  
Old March 7th, 2009, 09:07 AM
philip_cole philip_cole is offline
Friend of Wrox
Points: 894, Level: 11
Points: 894, Level: 11 Points: 894, Level: 11 Points: 894, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: London, , United Kingdom.
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Hi

Welcome to P2P.
All I can think is that the file, or possibly your browser, is in some sort of unicode encoding, which may look fine in Notepad but cause problems in the browser.
With the xml file open in Notepad, click File->Save As. At the bottom of the save dialog, there is an Encoding dropdown. Make sure that says Ansi, instead of Unicode or UTF8, and save it.

Note also that Internet Explorer 7 will find the xml tag, think this is an actual xml file being output and attempt to render it as such, whilst Firefox doesn't. This may also be something worth investigating.

Your code is certainly fine, as I dropped it as-is into my own asp file and ran it without any problems.

Hope this helps
Phil
Reply With Quote