Guest libby Posted October 12, 2005 Report Share Posted October 12, 2005 I am using xml data that is produced by using a asp file so the datasource is an asp file. I have been trying to implement the cross-browser parser as shown here:http://www.w3schools.com/dom/dom_parser.aspbut it seems to only work when the datasource is an xml file, not an asp file. If I pull the data out manually and save it as an xml file the cross-browser parser works, but then it's not automatically updated from the database.Does anyone have any suggestions? (I am new to xml, needless to say)I have parsed the data already in such a way that it's only available to IE users:http://www.trafficconnect.co.za/big_xml.html Quote Link to post Share on other sites
Nick 0 Posted October 17, 2005 Report Share Posted October 17, 2005 I don't know if this is your problem or how you would fix it with asp, but I had a similar problem with php not outputting xml files right.IIS or whatever interprets .asp files probably uses the mime type 'text/html' by default for your files. This does not work with xml. If there's an asp equivilant of php's header() function, (to send HTTP headers) try sending the header, 'Content-Type: application/xml;' at the begining of your asp file.That's the only thing I can think of. Sorry I never really looked into .asp much so I can't help with how to do that. Hope you can figure it out.Edit: I think you can do something like: <%Response.ContentType="application/xml"%> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.