Problem Loading xml document

  • Thread starter Thread starter Tom Vukovich
  • Start date Start date
T

Tom Vukovich

I'm having a problem loading an xmldocument from the web. The xml i wish to
bring into the application is generated from a request to an ASP page. The
following code does not work.

xmldoc2.Load(http://Blah/Blah/blah/NYISOZoneData.asp?Zone=ALL)

However if i save a copy of the generated file and load it like this,

xmldoc2.Load(Server.MapPath("NYISO.XML"))

Everything is fine.

Any Ideas?

Thanks
tv
 
Tom said:
I'm having a problem loading an xmldocument from the web. The xml i wish to
bring into the application is generated from a request to an ASP page. The
following code does not work.

xmldoc2.Load(http://Blah/Blah/blah/NYISOZoneData.asp?Zone=ALL)

Is that MSXML that you are using? Try setting
xmldoc2.setProperty("ServerHTTPRequest", true)
if you are using MSXML.
If not (as you are posting in the .NET groups do you get any error
message? "Does not work" is not much to go on why it doesn't work.
 
Back
Top