function loadXMLs(str) 
	{
	try //Internet Explorer
	  {
	  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	  xmlDoc.async="false";
	  xmlDoc.loadXML(str);
	  return(xmlDoc); 
	  }
	catch(e)
	  {
	  try //Firefox, Mozilla, Opera, etc.
		{
		parser=new DOMParser();
		xmlDoc=parser.parseFromString(str,"text/xml");
		return(xmlDoc);
		}
	  catch(e) {alert(e.message)}
	  }
	return(null);
	}
xmlstr='<rss version="2.0"> <channel> <title>New Media Age - Subscription stories</title> <link>http://www.nma.co.uk</link> <description>http://www.nma.co.uk</description> <image> <url>http://www.nma.co.uk/magazine/graphics/logo.png 					</url> <title></title> <link>http://www.nma.co.uk</link> </image> <item> <title>Phil Fearnley, BBC Future Media</title> <link>http://www.nma.co.uk/features/profiles/phil-fearnley-bbc-future-media/3027939.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/phil-fearnley-bbc-future-media/3027939.article</guid> <description>With a remit covering different content types and devices, BBC Future Media’s Phil Fearnley believes the whole digital industry must cooperate to keep things simple for audiences</description> <pubDate>Thu, 30 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Starbucks rewarded with nma Awards Grand Prix</title> <link>http://www.nma.co.uk/news/cover-story-starbucks-rewarded-with-nma-awards-grand-prix/3027808.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-starbucks-rewarded-with-nma-awards-grand-prix/3027808.article</guid> <description>Starbucks and Manning Gottlieb OMD took the Grand Prix at this year’s new media age Effectiveness Awards, for Starbucks Rewards, which also won the Best Retail Campaign award.</description> <pubDate>Fri, 24 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Roger Sniezek, Nectar</title> <link>http://www.nma.co.uk/features/profiles/roger-sniezek-nectar/3027756.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/roger-sniezek-nectar/3027756.article</guid> <description>Nectar ops and digital director Roger Sniezek is responsible for using the vast amount of data gathered by the company to engage all ’collectors’ in ways that no other company can</description> <pubDate>Fri, 24 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>nma Salary Survey</title> <link>http://www.nma.co.uk/nma-salary-survey/3027611.article</link> <guid isPermaLink="true">http://www.nma.co.uk/nma-salary-survey/3027611.article</guid> <description>While the digital sector is booming, getting the right job remains a challenge. Every business, from client to service provider, agency to media owner, is looking for people who can deliver effective, innovating solutions to company and customer problems.</description> <pubDate>Thu, 23 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Sonia Carter, Cadbury</title> <link>http://www.nma.co.uk/features/profiles/sonia-carter-cadbury/3027463.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/sonia-carter-cadbury/3027463.article</guid> <description>Cadbury’s Sonia Carter believes digital activity should be fun and useful, and her experience in the finance sector helps her ensure the brand’s campaigns leave users wanting more</description> <pubDate>Thu, 16 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Usage figures set to boost brands’ mobile ad spend</title> <link>http://www.nma.co.uk/news/cover-story-usage-figures-set-to-boost-brands’-mobile-ad-spend/3027417.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-usage-figures-set-to-boost-brands’-mobile-ad-spend/3027417.article</guid> <description>Mobile operator body the GSMA and ComScore have edged closer towards establishing a complete picture of mobile internet use for advertisers by extending the Mobile Media Metrics currency to break out apps.</description> <pubDate>Thu, 16 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Kids are latest worry for digital industry</title> <link>http://www.nma.co.uk/news/cover-story-kids-are-latest-worry-for-digital-industry/3027160.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-kids-are-latest-worry-for-digital-industry/3027160.article</guid> <description>The digital industry must move quickly to address concerns over the availability of adult material online and digital marketing practices to children if stringent Government regulation is to be avoided.</description> <pubDate>Thu, 9 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Alistair Allan, Dazed Digital</title> <link>http://www.nma.co.uk/features/profiles/alistair-allan-dazed-digital/3027191.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/alistair-allan-dazed-digital/3027191.article</guid> <description>Co-existing as a geek and cool kid, Dazed Digital’s Alistair Allan sets the trends the trendsetters follow by keeping the Dazed website at the cutting edge of personalised content</description> <pubDate>Thu, 9 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Sam Finlay, IPC Media</title> <link>http://www.nma.co.uk/home/profile/sam-finlay-ipc-media/3026988.article</link> <guid isPermaLink="true">http://www.nma.co.uk/home/profile/sam-finlay-ipc-media/3026988.article</guid> <description>As IPC Media’s digital media head, Sam Finlay lets the brands in its portfolio speak for themselves. He just makes sure the best platforms are in place for them to reach the right people</description> <pubDate>Thu, 2 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Waitrose serves personal content</title> <link>http://www.nma.co.uk/news/cover-story-waitrose-serves-personal-content/3026934.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-waitrose-serves-personal-content/3026934.article</guid> <description>Waitrose has placed a fully personalised website, tailored to each individual user, at the heart of a multi-million-pound ecommerce strategy based around its shoppers’ previous browsing behaviour.</description> <pubDate>Thu, 2 Jun 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Industry moves to ease mobile ad worries</title> <link>http://www.nma.co.uk/news/cover-story-industry-moves-to-ease-mobile-ad-worries/3026740.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-industry-moves-to-ease-mobile-ad-worries/3026740.article</guid> <description>The ABC and IAB are in talks to create a joint industry body to police the burgeoning mobile ad sector and allay escalating fears over mobile ad misplacement.</description> <pubDate>Thu, 26 May 2011 00:00 GMT</pubDate> </item> <item> <title>Jon Miller, News Corp</title> <link>http://www.nma.co.uk/features/profiles/jon-miller-news-corp/3026741.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/jon-miller-news-corp/3026741.article</guid> <description>With the increasing convergence of content across digital platforms, defining the terms of trade is key to News Corp’s ongoing success, says its chief digital officer Jon Miller</description> <pubDate>Thu, 26 May 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Brands welcome BARB equivalent for online video</title> <link>http://www.nma.co.uk/news/cover-story-brands-welcome-barb-equivalent-for-online-video/3026487.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-brands-welcome-barb-equivalent-for-online-video/3026487.article</guid> <description>The UK Online Measurement Company (UKOM) and Nielsen have launched the first industry-backed online video metric, allowing brands to directly compare web viewing with TV for the first time.</description> <pubDate>Thu, 19 May 2011 00:00 GMT</pubDate> </item> <item> <title>Matthew Hawn, Last.fm</title> <link>http://www.nma.co.uk/features/profiles/matthew-hawn-lastfm/3026522.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/matthew-hawn-lastfm/3026522.article</guid> <description>As VP of product for Last.fm, Matthew Hawn has the tough task of keeping the music streaming service competitive in a crowded market. His solution is to make it more social</description> <pubDate>Thu, 19 May 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Sainsbury’s ties in-store purchase to online interaction</title> <link>http://www.nma.co.uk/news/cover-story-sainsbury’s-ties-in-store-purchase-to-online-interaction/3026239.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-sainsbury’s-ties-in-store-purchase-to-online-interaction/3026239.article</guid> <description>Sainsbury’s is using Nectar card data to target offline shoppers and encourage them to write online reviews of the products they’ve purchased.</description> <pubDate>Thu, 12 May 2011 00:00 GMT</pubDate> </item> <item> <title>Mike Anderson, Chelsea Apps Factory</title> <link>http://www.nma.co.uk/features/profiles/mike-anderson-chelsea-apps-factory/3026296.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/mike-anderson-chelsea-apps-factory/3026296.article</guid> <description>Ex-News International MD Mike Anderson so believes in mobile apps that when he left newspapers he staked his own money to found app developer Chelsea Apps Factory</description> <pubDate>Thu, 12 May 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Online music too expensive for most people</title> <link>http://www.nma.co.uk/news/cover-story-online-music-too-expensive-for-most-people/3025998.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-online-music-too-expensive-for-most-people/3025998.article</guid> <description>Music streaming services are too expensive and risk pricing people out of paying to listen, according to exclusive research for new media age.</description> <pubDate>Thu, 5 May 2011 00:00 GMT</pubDate> </item> <item> <title>Dennis Crowley, Foursquare</title> <link>http://www.nma.co.uk/features/profiles/dennis-crowley-foursquare/3025825.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/dennis-crowley-foursquare/3025825.article</guid> <description>Since co-founding Foursquare, Dennis Crowley has seen some major players follow it into the location services market. But he’s confident its growing audience will keep it on top</description> <pubDate>Thu, 28 Apr 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Mobile leads growth for search agencies</title> <link>http://www.nma.co.uk/news/cover-story-mobile-leads-growth-for-search-agencies/3025828.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-mobile-leads-growth-for-search-agencies/3025828.article</guid> <description>Search agencies are bolstering their mobile capabilities to provide a more integrated offering, as the proliferation of mobile devices continues to drive ad spend across the channel, reveals this year’s nma Marketing Services Guide.</description> <pubDate>Thu, 28 Apr 2011 00:00 GMT</pubDate> </item> <item> <title>Cover story: Brands see high returns from mobile coupons</title> <link>http://www.nma.co.uk/news/cover-story-brands-see-high-returns-from-mobile-coupons/3025663.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-brands-see-high-returns-from-mobile-coupons/3025663.article</guid> <description>Brands from the restaurant and retail sectors are poised to ramp up their mobile marketing activity after Starbucks and House of Fraser witnessed record redemption rates using mobile coupons.</description> <pubDate>Thu, 21 Apr 2011 00:00 GMT</pubDate> </item> </channel> </rss> 	';
xmlDoc = loadXMLs(xmlstr);
var txt = '';
var txt = '';
items = xmlDoc.getElementsByTagName("item");
	for (i=0; i<6; i++) {
	
		var title=""; 
		var hlink="";
		var descr="";
		var pubdate=""
date = items[i].getElementsByTagName("pubDate")[0].childNodes[0].nodeValue;
	result = date.match(/\d{1,2}.*\d{4}/);
	date = result[0];
	date = date.replace(/ /g,"-");if (items[i].getElementsByTagName("title")[0].length != 0)
title = items[i].getElementsByTagName("title")[0].childNodes[0].nodeValue;
title = title.substring(title.indexOf(":") + 1, title.length );
if (items[i].getElementsByTagName("link")[0].length != 0)
hlink = items[i].getElementsByTagName("link")[0].childNodes[0].nodeValue;
if (items[i].getElementsByTagName("description")[0].childNodes.length != 0)
txt += '<div class="arrow"><a href="'+ hlink +'">' + title + '</a><br /><br /></div>';
}
document.write (txt);

