Click to See Complete Forum and Search --> : Retrieval of Remote XML files with ASP

05-29-2001, 11:08 PM
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.

<%@ 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

'Write Text to File
Response.Write xml.responseText
Set xml = Nothing

That's It!

05-30-2001, 09:49 AM
oh your sexy....

Works great!!

Thanks alot.

jw taylor

06-04-2001, 06:27 AM
do i have to insert Microsoft.XMLHTTP instead of the moreover url in the flash file?