Problem Loading xml document

Discussion in 'ASP .Net' started by Tom Vukovich, Aug 9, 2004.

  1. Tom Vukovich

    Tom Vukovich Guest

    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 Vukovich, Aug 9, 2004
    #1
    1. Advertising

  2. Tom Vukovich wrote:

    > 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.



    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Aug 9, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony Prichard
    Replies:
    0
    Views:
    711
    Tony Prichard
    Dec 12, 2003
  2. Manish Hatwalne
    Replies:
    1
    Views:
    390
    Martin Honnen
    Jul 13, 2004
  3. evillanueva

    Problem loading XML Document

    evillanueva, Nov 16, 2005, in forum: XML
    Replies:
    0
    Views:
    382
    evillanueva
    Nov 16, 2005
  4. Ion Freeman
    Replies:
    17
    Views:
    811
    Tom Anderson
    Jul 11, 2009
  5. ofir
    Replies:
    0
    Views:
    173
Loading...

Share This Page