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>Recruiter - News &amp; Analysis</title> <link>http://www.recruiter.co.uk</link> <description>http://www.recruiter.co.uk</description> <image> <url>http://www.recruiter.co.uk/magazine/graphics/logo.png 					</url> <title></title> <link>http://www.recruiter.co.uk</link> </image> <item> <title>M&amp;As on the rise, but doubts remain</title> <link>http://www.recruiter.co.uk/mas-on-the-rise-but-doubts-remain/1006703.article</link> <guid isPermaLink="true">http://www.recruiter.co.uk/mas-on-the-rise-but-doubts-remain/1006703.article</guid> <description>As world economic conditions improve mergers and acquisitions activity in the staffing industry looks set to rise, but the outlook is by no means certain. Colin Cottell reports</description> <pubDate>Wed, 1 Sep 2010 00:00 GMT</pubDate> </item> <item> <title>Can uk exports stop the double dip?</title> <link>http://www.recruiter.co.uk/can-uk-exports-stop-the-double-dip?/1006550.article</link> <guid isPermaLink="true">http://www.recruiter.co.uk/can-uk-exports-stop-the-double-dip?/1006550.article</guid> <description>Can an export-led recovery lead the UK out of recession and redress the balance in the labour market? Colin Cottell looks at the prospects</description> <pubDate>Wed, 18 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Changes in the public sector workforce</title> <link>http://www.recruiter.co.uk/changes-in-the-public-sector-workforce/1006276.article</link> <guid isPermaLink="true">http://www.recruiter.co.uk/changes-in-the-public-sector-workforce/1006276.article</guid> <description>Cuts to the public sector will have many implications for UK plc. Louisa Redfern discusses the challenges facing both the workforce and business</description> <pubDate>Wed, 21 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>More positive but not out of the woods</title> <link>http://www.recruiter.co.uk/more-positive-but-not-out-of-the-woods/1006109.article</link> <guid isPermaLink="true">http://www.recruiter.co.uk/more-positive-but-not-out-of-the-woods/1006109.article</guid> <description>Fewer recruitment agencies went into administration in the last quarter, but there’s still no room for complacancy. Christopher Goodfellow</description> <pubDate>Wed, 7 Jul 2010 00:00 GMT</pubDate> </item> </channel> </rss> 	';
xmlDoc = loadXMLs(xmlstr);
var txt = '';
var txt = '';
items = xmlDoc.getElementsByTagName("item");
	for (i=0; i<1; i++) {
	
		var title="";
		var hlink="";
		var descr="";
		var pubdate="";
	
		
		if (items[i].getElementsByTagName("title")[0].length != 0)
			title = items[i].getElementsByTagName("title")[0].childNodes[0].nodeValue;
		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)
			descr = items[i].getElementsByTagName("description")[0].childNodes[0].nodeValue;
			var len = 200;
				if (descr) {
					if (descr.length > len) {
						descr = descr.substring(0, len);
						descr = descr.replace(/\w+$/, "");
						descr += "...";
					  }
					}
		
		if (items[i].getElementsByTagName("pubDate")[0].length != 0)
			pubdate = items[i].getElementsByTagName("pubDate")[0].childNodes[0].nodeValue;txt +='<div class="sleeve">';
txt +='<h2><a href="'+ hlink +'">' + title + '</a></h2>';
txt +='<p class="meta"><span class="date">' + pubdate + '</span></p>';
txt +='<p>'+ descr + '</p>';
txt += '</div>';
}
document.write (txt);
