SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Accesing XML values with classic asp problem

    I have, maybe trivial problem, but i could not find any answer on Google due to lack of documentation. I`m sending request from my domain to another, and aiming for web service that returns XML (xml rpc). I do this through this piece of code:


    url = "some url aiming at web service"
    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
    xmlhttp.open "GET", url, false
    xmlhttp.send ""
    xmlString = xmlhttp.responseText
    set xmlhttp = nothing

    When i try to print xmlString it returns complete page.

    XML is similar to this:

    <grandpa>
    <father>value</father>
    <son>value</son>
    </grandpa>

    How can i access specific nodes and values? And is my way of retrieving xml good? I haven`t done anything in past few years with vb script and classic asp...

  2. #2
    SitePoint Addict
    Join Date
    Apr 2009
    Posts
    359
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't use msxml but google turned this up right away maybe it will help

    http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx
    Doug G
    =====
    "If you ain't the lead dog, the view is always the same - Anon

  3. #3
    SitePoint Addict itHighway's Avatar
    Join Date
    Jan 2008
    Location
    GUJ
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The MSXML2.ServerXMLHTTP object returns complete page.
    You may have to use FileSystemObject to get the xml data from xmlString variable.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •