Live BBC News FeedAbout Live Feeds
UK astro Peake given station dateMon, 20 May 2013 08:26:51 GMT
UK astronaut Tim Peake is to fly to the International Space Station, launching on a Soyuz rocket in November or December 2015.
We need to keep Bale - Villas-BoasMon, 20 May 2013 08:20:39 GMT
Tottenham boss Andre Villas-Boas says it is vital the club keep star player Gareth Bale if they are to improve next season.
Multiple car bomb attacks hit IraqMon, 20 May 2013 08:16:32 GMT
At least 26 people are killed by car bombs in the Iraqi cities of Baghdad and Basra, police and medical officials say.
China asks N Korea to free boat crewMon, 20 May 2013 08:14:10 GMT
China says it has called on North Korea to secure the release of a fishing boat and its crew seized on 5 May, as captors reportedly demand a ransom.
Second body found after house blastMon, 20 May 2013 08:13:44 GMT
A man and a woman are found dead at the scene of a suspected gas explosion at a Nottinghamshire house.
Inquiry into aircraft death crashMon, 20 May 2013 08:13:09 GMT
An investigation is under way after one man died and two people, one of them a boy, were critically injured when a light aircraft crashed at Caernarfon Airport
FirstGroup plans £600m rights issueMon, 20 May 2013 08:11:50 GMT
Transport company FirstGroup has announced a £615m rights issue in a bid reduce its debt after its full year profit dropped by over a third.
VIDEO: Chelsea Flower Show: 100 Years onMon, 20 May 2013 08:11:44 GMT
The Chelsea Flower Show celebrates its 100th anniversary this year.
Gay marriage bill returns to CommonsMon, 20 May 2013 08:07:52 GMT
Conservative Party divisions over legalising same-sex marriage in England and Wales are set to be exposed again when the plans return to the Commons later.
Police talks 'should make NI safer'Mon, 20 May 2013 07:42:01 GMT
A senior PSNI officer says talks in Cardiff over the weekend between police, politicians and community representatives should help make Northern Ireland safer this summer.
Man in 60s dies following flat fireMon, 20 May 2013 07:33:20 GMT
A 63-year-old man has died in a fire at a top floor flat in University Street in south Belfast.
VIDEO: Ark Royal sets sail on final journeyMon, 20 May 2013 07:19:18 GMT
The Royal Navy's former flagship, the Ark Royal, sets sail for the final time, bound for a scrap yard in Turkey.
China leader vows better India tiesMon, 20 May 2013 07:10:42 GMT
China's Premier Li Keqiang pledges to build trust with India where he is meeting his counterpart Manmohan Singh, after a recent flare-up in border tensions.
Ryanair profits at record highMon, 20 May 2013 06:57:03 GMT
Discount airline Ryanair reports record full-year profits and rising revenues despite soaring fuel costs, but hits out at "bizarre" EU takeover decision.
Bunions 'blame family not footwear'Mon, 20 May 2013 06:45:37 GMT
The risk of developing bunions - bony growths on the big toe - is linked to your family, not your shoes, a US study has shown.
Fierce battle for key Syrian townMon, 20 May 2013 06:41:50 GMT
Fighting rages in Syria's town of Qusair after government troops launched a major operation to seize the strategic rebel stronghold.
VIDEO: UK astronaut Peake to go into orbitMon, 20 May 2013 06:17:13 GMT
The UK astronaut Tim Peake has been given a date to fly to the International Space Station (ISS).
Concern over cost of rental changesMon, 20 May 2013 06:05:09 GMT
Changes to the way social and private homes are rented could cost up to £45m, a landlords' organisation claims, saying it would be better spent building houses.
About the Live Feeds example
The XML for this page is taken from the publicly available RSS feeds at the BBC's website. I would have liked to use the technology feed as it was more appropriate for the site, but it was not updated as often so the live functionality would not be visible, or there would be a long wait until it was!
A small counter starts off the process so only 1 request is made to the BBC every 10 seconds. When the XML is retrieved it is stored in an array and the index of the array and the published date for each item was put into a database and sorted. The output is then saved as a HTML file on the server and every other request for the next 10 seconds uses the "cached" file.