Retrieval of Remote XML files with ASP
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Retrieval of Remote XML files with ASP

  1. #1
    Junior Member
    Join Date
    Nov 2000
    Posts
    4

    Smile

    To retrieve remote xml files, like the XML Tutorial here on Flash Kit illustrates, just call on the following ASP page rather then the remote address.

    Unfortunately, I have only done this so far is ASP. I'll be working on a PHP version and hopefully someone out there can create a Perl version.

    Here it is... Just Copy and Paste it into a new text file and name it fetchXML.asp. Then call on fetchXML.asp from the Flash file.


    Code:
    <%@ Language="VBScript" %> 
    <%option explicit %> 
    
    <%
    ' -  Just Change the Value of srcFile to the proper moreover xml stream.
    ' -  Go to http://w.moreover.com/categories/category_list_xml.html
    ' -  For a Full listing of all of the content available
    ' -  Instead of Directing the Flash File at a .xml file, direct it to this file.
    
    Dim srcFile
    srcFile = "http://p.moreover.com/cgi-local/page?c=Pop%20music%20news&o=xml"
    
    
      'Nothing Below Here Has To Change
      Response.Buffer = True
      Dim objXMLHTTP, xml
    
      ' Create an xmlhttp Object and Get it!
      Set xml = Server.CreateObject("Microsoft.XMLHTTP")
      xml.Open "GET", srcFile, False
      xml.Send
      
      'Write Text to File
      Response.Write xml.responseText
      Set xml = Nothing
    %>
    That's It!

  2. #2
    Junior Member
    Join Date
    Apr 2001
    Posts
    8
    oh your sexy....

    Works great!!

    Thanks alot.

    jw taylor
    http://webdesign.naxs.com

  3. #3
    do i have to insert Microsoft.XMLHTTP instead of the moreover url in the flash file?

Posting Permissions

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




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com