Problem Loading xml document

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
 
M

Martin Honnen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top