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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Dated XML files from one directory

Status
Not open for further replies.

AarynC

Programmer
Apr 25, 2005
13
GB
Hi,

First time I have looked at using XML and RSS, and I am wanting to put a news section from home on website (living overseas)

I have a directory from the New Zealand Herald here:
These files are updated 3 times a day, and as you can see, each xml file is a seperate story with a filename related to the date of the story.

I have downloaded a dreamweaver rss extension (JS), and looked at others, but they seem to want to have the xml file specified when setting up.

Is there a way to get an RSS parser to use all the files in this directory every time the news page is loaded? It just seems that with the current setup, I would need to manually change the feed details on the page every time I want to update.

Thanks
Aaryn
 
Thats because that is not a true RSS... that looks more like an archive from the RSS...

An RSS has one file that is updated...

Not a folder with many files...

A typically RSS looks like this:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">

<channel>
<title>W3Schools</title>
<link>[URL unfurl="true"]http://www.w3schools.com</link>[/URL]
<description>W3Schools Web Tutorials </description>

<item>
<title>RSS Tutorial</title>
<link>[URL unfurl="true"]http://www.w3schools.com/rss</link>[/URL]
<description>Check out the RSS tutorial
on W3Schools.com</description>
</item>

</channel>
</rss>

Here is some further information:

And as far as using all files in a directory, I don't think you can, unless it is a server side App... (could be wrong though...)

Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Thanks Cube. I thought that the one file would be more logical.

Ho Hum, I'll look for another source I guess. Thanks for your input.

Aaryn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top