creating dynamic xml

tamind

New member
Joined
Oct 24, 2006
Messages
3
Programming Experience
3-5
Hi,

I have a webpage that uses xml in an AJAX fashion. When I point it at a static xml file it works fine. When I create the xml dynamically in vb.net framework 1.1 (MS Visual studio 2003) there is a problem. The xml comes down fine when pointing the browser at the url. It also works fine in firefox, but the xml document does not get created properly in ie.

Any pointers much appreciated.

Blow is the code used to generate the xml.
==============================

Response.ContentType = "text/xml"

Response.Write("<?xml version=""1.0"" standalone=""yes""?><blah>blah</blah>")

Response.Flush()
Response.Close()
Response.End()



 
Removing Response.Flush/Response.Close but still do Response.End worked when I tested.
 
Sure you understood what I said? This does work here:
VB.NET:
Response.ContentType = "text/xml"[SIZE=2]
Response.Write("<?xml version=""1.0"" standalone=""yes""?><blah>blah</blah>")
Response.End()
[/SIZE]
 
Yup, that is what I have. It is very strange.

When I try to open up the page within the javascript I get a null xmlDoc. As I said, it works fine in firefox.

I can call the page directly from the browser and it returns the xml ok. I then save the source as a static xml file and the javascript reads it in fine.

:confused:
 
Back
Top