Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSS News Feed to ASP

Status
Not open for further replies.

altisdesign

Technical User
Apr 15, 2003
17
GB
I've been reading up on XML and RSS, and I can do ASP, so I'm playing around with trying to retrieve XML information (news headlines) which are in an RSS form. I've looked at lots of 4guys articles, which is what my code is based on, and also looked at w3schools, searched this resource, sitepoint forums and snitz, but to no avail. I'm trying to use the following XML file:
The page that should display the results is located at - This should display the headline URL, this is not the finished product of the page, just a test to see if it would work. However, as you can see, it doesnt, I just get a blank table and nothing else. I've messed around with my XSL file to see if I could get it to work, because it appears to load the XML file successfully, but not parse it into XML as it should so then nothing gets displayed Does anyone have any experience with this and ASP?

This is the ASP page I'm using:

This is the XSL file I'm using:

Can anyone tell me what I'm doing wrong and why it doesn't work? I'm at a loss . I wondered if it could be a difference between pure XML and RSS, but I'm not sure.

Many Thanks in advance
-Altis Design
 
Altis, have you done any debugging in your ASP? When you develop a set of code that performs several operations you need to break them down into the smallest (simplify) isolated operations possible and verify each one individually.

After a brief read of your asp here is what i see:

(A) send the response text as is from the HTTP request to the browser in a <textarea> element to verify what you are receiving. [blue]This step verifies the HTTP operation[/blue]

(B) Once verified save it to disk as a XML file and process it with your XSL(T) locally to verify the results of the transformation to HTML. To be consistent use the MSXSL.exe which will use the same transformation as your ASP code does, or even just write a .js or .vbs script file to do it with yourself. [blue]This step verifies the XSL(T) sheet produces the HTML you desire[/blue]

If you get that far and it still does not work post back again.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top