SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Location
    Eindhoven
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ERROR making connection with XML

    I've got an URL for my XML. I have got a connection with <username> and <password>.

    Where do I have to put this information for the validation?

    Code ASP:
    <%
     
    	Set xmlObj = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
    	xmlObj.async = False
    	xmlObj.setProperty "ServerHTTPRequest", True
    	xmlObj.Load("http://rechtenmedia.nl/searchrm.xml?datatype=news&searchTerms=abn%20amro&offset=10")
    	If xmlObj.parseError.errorCode <> 0 Then
    		Response.Write "No items found."
    	End If
    	Set xmlList = xmlObj.getElementsByTagName("item")
    	Set xmlObj = Nothing
    	x = 1
    	For Each xmlItem In xmlList 
    		If x < 6 then
    			title 	= xmlItem.childNodes(0).text
    			link	= xmlItem.childNodes(2).text
    			Response.Write "<li><a href='" & link & "' title='" & title & "'>" & title & "</a></li>"
    		End if
    		x = x + 1
    	Next
    	Set xmlList = Nothing
     
    %>

    Can someone help me? Thanks!

  2. #2
    SitePoint Guru
    Join Date
    Jun 2007
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Typically, you will need to pass the username and password with the querystring


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
  •