SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Read xml

  1. #1
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Read xml

    I'm baffled, been working on this on and off all day!

    How do I perform a search, basically chack stock for a particualar item?

    ...here is my code;

    URL = "http://www.1on1dropship.co.uk/members_area/feeds.2.0/status-xml.asp"

    Set objXML = Server.CreateObject("Microsoft.XMLDOM")
    objXML.setProperty "ServerHTTPRequest", True
    objXML.async = False
    objXML.Load(URL)

    p_code = objXML.documentElement.selectSingleNode("product").text

  2. #2
    SitePoint Addict itHighway's Avatar
    Join Date
    Jan 2008
    Location
    GUJ
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there only one node with the name of 'product'.
    If there are multiple nodes than you may need loop in order to get the text from each node.


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
  •