<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP, iPad, and iPhone Developer - Ben Dodson &#187; Tube Updates</title>
	<atom:link href="http://bendodson.com/category/tube-updates/feed/" rel="self" type="application/rss+xml" />
	<link>http://bendodson.com</link>
	<description>The blog and portfolio of an Apple iPhone Developer</description>
	<lastBuildDate>Sat, 05 Dec 2009 20:00:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Duplicate Messages Bug Fixed on TubeUpdates.com</title>
		<link>http://bendodson.com/2009/05/17/duplicate-messages-bug-fixed-on-tubeupdatescom/</link>
		<comments>http://bendodson.com/2009/05/17/duplicate-messages-bug-fixed-on-tubeupdatescom/#comments</comments>
		<pubDate>Sun, 17 May 2009 15:50:39 +0000</pubDate>
		<dc:creator>Ben Dodson</dc:creator>
				<category><![CDATA[Tube Updates]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tfl]]></category>
		<category><![CDATA[tube]]></category>
		<category><![CDATA[web apps]]></category>

		<guid isPermaLink="false">http://bendodson.com/blog/?p=114</guid>
		<description><![CDATA[As you may already know, I run a website called <a href="http://tubeupdates.com">TubeUpdates.com</a> which provides a RESTful API for the <a href="http://www.tfl.gov.uk">TFL Underground</a> network so you can build apps that utilize that data.  Unfortunately, this data is obtained by screen scraping with PHP and as often happens, the markup on the host site changes meaning my script needs to change.  This happened recently with the TFL site meaning that every line returned the same messages but I've just released an update which fixes this.]]></description>
			<content:encoded><![CDATA[<p>As you may already know, I run a website called <a href="http://tubeupdates.com">TubeUpdates.com</a> which provides a RESTful API for the <a href="http://www.tfl.gov.uk">TFL Underground</a> network so you can build apps that utilize that data.  Unlike some other services or XML files that try to provide this data, my API scrapes all of the pages on the TFL site in order to give out the specific messages for each line e.g. rather than having &#8220;Minor Delays&#8221; you&#8217;ll be given an array of each message from their site about the delays such as &#8220;Sunday 17 May, suspended between Liverpool Street and Leytonstone. Two rail replacement bus services operate.&#8221; which is obviously a lot more useful.</p>
<p><span id="more-114"></span>However, as my script relies on screen scraping, problems do occur when TFL decide to change their HTML or site structure which has happened recently.  Previously, every tube line had it&#8217;s own page with it&#8217;s messages listed on it but now there is <a href="http://www.tfl.gov.uk/tfl/livetravelnews/realtime/tube/default.html">one single page</a> with all of them shown and hidden with javascript.  This meant that for a short period, my API was posting out the messages for every single line with each line returned (so if you wanted to look at circle line messages, you would in fact get every line).</p>
<p>This has now been fixed and actually makes the service slightly better for me as it now means I can crawl just 3 pages rather than the 14 I was crawling before (thus better for both bandwidth and CPU cycles).  I have a number of functions set up to report when TFL change their site structure as the usual problem is that a site redesign changes class names or markup in such a way that the API just breaks.  However, in this case none of these warnings kicked in as it was getting the data correctly and all seemed to be ok.</p>
<p>So, a big thank you to those of you that emailed in to report the bug!  If you have any questions about the Tube Updates API, then please <a href="http://tubeupdates.com/">check out the site</a> or <a href="http://bendodson.com/contact/">drop me an email</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bendodson.com/2009/05/17/duplicate-messages-bug-fixed-on-tubeupdatescom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updates coming soon to London Underground RSS Feed</title>
		<link>http://bendodson.com/2008/12/09/updates-coming-soon-to-london-underground-rss-feed/</link>
		<comments>http://bendodson.com/2008/12/09/updates-coming-soon-to-london-underground-rss-feed/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 15:45:17 +0000</pubDate>
		<dc:creator>Ben Dodson</dc:creator>
				<category><![CDATA[Tube Updates]]></category>
		<category><![CDATA[london underground]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[tube]]></category>

		<guid isPermaLink="false">http://bendodson.com/blog/?p=46</guid>
		<description><![CDATA[I'm currently working on a major overhaul of my RSS Feed that displays the latest updates from the London Underground scraped from the TFL site.  Subscribe to my blog feed for updates!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had a large number of emails over the last week or so about my <a href="http://bendodson.com/blog/2008/03/16/rss-feed-of-the-london-underground-tube-status/">RSS Feed that displays the latest updates from the London Underground</a> asking for more data or for a slightly different service.  I hadn&#8217;t realised how many people were using the feed (which I put up as a tutorial on how to site scrape and to demonstrate the lack of tools on the new TFL site) until my server nearly died as the access logs had ballooned to 7GB!</p>
<p><span id="more-46"></span>
<p>So, I&#8217;m pleased to say that I&#8217;m working on some major updates which will provide not only the current RSS feed but also a full REST API and dedicated site so you can get more data and more flexibility into your applications.</p>
<p>I should have everything ready in the next few days so sign up to my <a href="/rss.xml">RSS feed</a> to be notified when the new service goes live!  If you have any suggestions, please <a href="/contact/">contact me</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bendodson.com/2008/12/09/updates-coming-soon-to-london-underground-rss-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSS Feed of the London Underground Tube Status</title>
		<link>http://bendodson.com/2008/03/16/rss-feed-of-the-london-underground-tube-status/</link>
		<comments>http://bendodson.com/2008/03/16/rss-feed-of-the-london-underground-tube-status/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 15:20:24 +0000</pubDate>
		<dc:creator>Ben Dodson</dc:creator>
				<category><![CDATA[Tube Updates]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[london underground]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[tube]]></category>

		<guid isPermaLink="false">http://bendodson.com/blog/?p=25</guid>
		<description><![CDATA[I've been spending some time making an RSS feed of the London Underground tube status as I've been working on a few projects that could use one.  You would think that <a href="http://www.tfl.gov.uk" rel="external">Transport for Londons</a> nice web 2.0 style website would provide this basic requirement but alas they don't.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been spending some time making an RSS feed of the London Underground tube status as I&#8217;ve been working on a few projects that could use one.  You would think that <a href="http://www.tfl.gov.uk" rel="external">Transport for Londons</a> nice web 2.0 style website would provide this basic requirement but alas they don&#8217;t.  There are a few developers out there who have written some scraping scripts to convert this information, but most of them no longer work as they haven&#8217;t been updated to work with the new site.</p>
<p><span id="more-25"></span>
<p>Previously I have used the script at <a href="http://conor.net/code/tube/" rel="external">conor.net</a> to power any projects requiring a tube RSS feed but this went down a few weeks ago when I was in the middle of some crucial testing. So, like any other crazy developer would, I decided to write my own PHP scraping script that would generate me a nice RSS feed to basically tell me TFL had messed up my journey home!</p>
<p>For those of you just looking for an RSS feed of the London Underground tube delays, you can find it at <a href="http://tube.bendodson.com/rss.xml" rel="external">http://tube.bendodson.com/rss.xml</a> &#8211; This is automatically updated every 5 minutes and will email me if anything goes wrong so I can fix it!  If you are going to use it for any projects, please <a href="http://bendodson.com/contact/">let me know</a> so that I can monitor bandwidth, etc.  If you are interested in how it works, then the code that powers this is below &#8211; feel free to use and modify it for your own projects:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// This file should be run on a CRON job every 5 minutes.</span>
<span style="color: #666666; font-style: italic;">// The server will need to be able to write to this folder in order to create the XML file.</span>
&nbsp;
<span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'bakerloo'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'central'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'circle'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'district'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'east london'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'hammersmith &amp; city'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'jubilee'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'metropolitan'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'northern'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'piccadilly'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'victoria'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'waterloo &amp; city'</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$id</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$id</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'and'</span><span style="color: #339933;">,</span><span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$lines</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$id</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$lines</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ucwords</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ref</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$lines</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> 
        <span style="color: #0000ff;">'http://www.tfl.gov.uk/tfl/livetravelnews/realtime/tube/tube-'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$id</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'-now.html'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$needle</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtoupper</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ref'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' LINE:'</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$pos</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #000088;">$needle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pos</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$pos</span> <span style="color: #339933;">+=</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$needle</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$end</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">,</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #000088;">$status</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #000088;">$pos</span><span style="color: #339933;">,</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$end</span><span style="color: #339933;">-</span><span style="color: #000088;">$pos</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$status</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'A good service is currently running.'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$lines</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$status</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$now</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'r'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #0000cc; font-style: italic;">&lt;&lt;&lt;XML
&nbsp;
&lt;rss version=&quot;2.0&quot;&gt;
    &lt;channel&gt;
        &lt;title&gt;London Tube Updates&lt;/title&gt;
        &lt;link&gt;http://www.tfl.gov.uk/tfl/livetravelnews/realtime/tube/default.html&lt;/link&gt;
        &lt;description&gt;The latest London Underground tube update information&lt;/description&gt;
        &lt;language&gt;en&lt;/language&gt;
        &lt;pubDate&gt;$now&lt;/pubDate&gt;
        &lt;lastBuildDate&gt;$now&lt;/lastBuildDate&gt;
        &lt;docs&gt;http://tube.bendodson.com/&lt;/docs&gt;
        &lt;webMaster&gt;ben@bendodson.com (Ben Dodson)&lt;/webMaster&gt;
        &lt;generator&gt;PHP script by Ben Dodson&lt;/generator&gt;
        &lt;ttl&gt;5&lt;/ttl&gt;
        &lt;image&gt;
            &lt;title&gt;Transport for London&lt;/title&gt;
            &lt;url&gt;http://www.tfl.gov.uk/tfl-global/images/roundel.gif&lt;/url&gt;
            &lt;link&gt;http://www.tfl.gov.uk/&lt;/link&gt;
            &lt;width&gt;52&lt;/width&gt;
            &lt;height&gt;44&lt;/height&gt;
            &lt;description&gt;Transport for London Logo&lt;/description&gt;
        &lt;/image&gt;
XML</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$xml</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;item&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$xml</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;title&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">htmlentities</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">ucwords</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/title&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$xml</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;link&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$line</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/link&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$xml</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;description&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">htmlentities</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/description&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$xml</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/item&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$xml</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/channel&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$xml</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/rss&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss.xml'</span><span style="color: #339933;">,</span><span style="color: #000088;">$xml</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>As I mentioned earlier, I am working on a few projects that utilise this script and I shall be making those available shortly.  However, for a sneak peek, you can check out <a href="http://tube.bendodson.com/" rel="external">iTube</a>, my Web App for iPhone that keeps you up-to-date on all of the London Underground lines.  There are still a few improvements to be made but you get the general idea!</p>
]]></content:encoded>
			<wfw:commentRss>http://bendodson.com/2008/03/16/rss-feed-of-the-london-underground-tube-status/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
