Question

Read sections of text file

Asked by: WingYip

Hi

I need to read 2 diff parts of a text file into 2 string variables.

What is the most efficient way to do this?

Text file is an html file and basically I want to read the contents found between <head> and </head> and then between <body> and </body>.

Anyone know how this is done?

Wing

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-14 at 03:21:38ID24810646
Topics

Microsoft Visual C#.Net

,

Programming for ASP.NET

,

Microsoft Visual Basic.Net

Participating Experts
3
Points
50
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. diff between arrays
    Hello all, I want to make a diff output between arrays. I know array_diff and array_diff_assoc but I need to tweak them a little and I'm not sure how. For every line in the base array that is different from the other array I need to output base line => bla bla bla other l...
  2. View lookup efficiency
    Hi Guys! Help me with this. This is for a web based app and using LS. There are forms containing several dozen fields (not more than 100). Primarily we need to lookup views to generate reports. Firstly we lookup one view then based on the foreign key value do a serach on ano...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: DhaestPosted on 2009-10-14 at 03:27:19ID: 25568844

 

by: sumesh_kashishPosted on 2009-10-14 at 04:00:45ID: 25569050

Using Regular expression you can extract the data.

First Store the data of text file into a string then by using following you can extract for head

/*For Head Section*/
System.Text.RegularExpressions.Match test_Mtch = System.Text.RegularExpressions.Regex.Match(strFile, "<head\b[^>]*>(.*?)</head>");
    MessageBox.Show(test_Mtch.Value);

/*For Body Section*/
System.Text.RegularExpressions.Match test_Mtch = System.Text.RegularExpressions.Regex.Match(strFile, "<body\b[^>]*>(.*?)</body>");
    MessageBox.Show(test_Mtch.Value);


Hope this solves your problem

 

by: WingYipPosted on 2009-10-14 at 05:30:00ID: 25569681

sumesh

test_Mtch is not returning anything.  Why would this be? <head and </head> tags definitely occur in the string I am loading.  The case is the same but nothing.

Any ideas?

Wing

 

by: WingYipPosted on 2009-10-14 at 05:30:40ID: 25569688

BTW does not work for body either

Wing

 

by: sumesh_kashishPosted on 2009-10-14 at 06:10:48ID: 25570010

what are you passing in strFile string

 

by: WingYipPosted on 2009-10-14 at 06:31:35ID: 25570218

This lot

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n \r\n \r\n<!--** /pages/dmstandard/header **-->\r\n \r\n \r\n \r\n \r\n \r\n<!--** /pages/skins/attribute_includes **-->\r\n \r\n \r\n \r\n \r\n \r\n<!--** - /pages/skins/attribute_includes **-->\r\n \r\n \r\n \r\n \r\n<head>\r\n<title>\r\nThe best advice on retirement & pensions: planning, saving, advice, guides & news, best annuities | This is Money\r\n\t\t\r\n</title>\r\n \r\n \r\n<!-- Content removed from here by Scraper.removeCanonicalTag -->\r\n \r\n \r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://img.thisismoney.co.uk/style/money.css\" media=\"screen\" />\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://img.thisismoney.co.uk/style/tim_global.css\" media=\"screen\" />\r\n<link rel=\"shortcut icon\" href=\"http://img.thisismoney.co.uk/i/std/favicon.ico\" type=\"image/ico\" />\r\n<!-- Content removed from here by Scraper.removeRSS -->\r\n \r\n<link rel=\"stylesheet\" media=\"print\" type=\"text/css\" href=\"http://img.thisismoney.co.uk/style/print.css\" />\r\n \r\n \r\n \r\n \r\n<!--** /pages/dmstandard/header_includes **-->\r\n \r\n \r\n \r\n \r\n \r\n \r\n<meta name=\"description\" content=\"Find everything you need to know about retirement with This is Money's comprehensive guide, including company, personal, stakeholder and state pensions\" />\r\n<meta name=\"keywords\" content=\"retirement, company pension, department work pension, government pension, civil service pension, company pension scheme, pension, personal pension, stakeholder pension, pension scheme, pension plan, final salary scheme, pension advice, pension transfer, with-profits pension, actuary, annuity, pensioner, AVC, best buy, catmark, cat mark, final salary, financial advice, financial planning, pension fund, financial services, personal pension plan, planning for retirement, income in old age, FSAVC, free-standing AVC, IFA, income, inflation, inheritance, investment, low-cost, lump sum, maturity, money purchase, OAP, ombudsman, paid up, pay, pensioner, s226 pension, probate, salary, SERPS, company pension, serps, stakeholder, top performing, tracker, transfer, trustee, uk personal finance, value for money, watchdog, wealth, will, income drawdown, state pension, guaranteed annuities, pension top up, added years, retirement income, pension trustee, flexible pension, tax-free cash lump sum, employee pension, portable pension, transfer penalties, waiver of insurance benefits, guaranteed income, independent financial adviser\" />\r\n \r\n \r\n \r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\r\n<meta http-equiv=\"Content-Language\" content=\"en\" />\r\n<META NAME=\"ROBOTS\" CONTENT=\"NOARCHIVE\" /> \r\n<meta http-equiv=\"imagetoolbar\" content=\"false\" />\r\n<meta name=\"MSSmartTagsPreventParsing\" content=\"true\" />\r\n<meta name=\"Rating\" content=\"General\" /> \r\n<meta name=\"revisit-after\" content=\"2 Days\" /> \r\n<meta name=\"doc-class\" content=\"Living Document\" />\r\n \r\n \r\n \r\n<meta name=\"WT.cg_n\" content=\"pensions\" />\r\n \r\n \r\n<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://img.thisismoney.co.uk/js/pageControl.js\"></script>\r\n<script type=\"text/javascript\" language=\"Javascript\" src=\"http://img.thisismoney.co.uk/js/JS_functions.js\"></script>\r\n<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://img.thisismoney.co.uk/js/and_validation.js\"></script>\r\n<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://img.thisismoney.co.uk/js/jquery.js\"></script>\r\n<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://img.thisismoney.co.uk/js/clearForm.js\"></script>\r\n<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://img.thisismoney.co.uk/js/contentslider.js\"></script>\r\n \r\n \r\n \r\n<!--** /pages/dmstandard/revScience **-->\r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START SCRAPE REMOVE -->\r\n \r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END SCRAPE REMOVE -->\r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START AD -->\r\n \r\n \r\n \r\n   \t\r\n    \r\n\t\t<script type=\"text/javascript\">\r\n\t        \r\n<!--** /pages/dmstandard/adValues **-->\r\n \r\n \r\nvar adType='dart',\r\n    dartSiteId = \"thisismoney.uk\",\r\n    adAreaSiteId = \"tim\",\r\n    adAreaId = 'pensions',\r\n    adSubareaId = 'home',\r\n    adPageType = 'hp',\r\n    adContent = \"\",\r\n    adArticleId = '',\r\n    enableAds=true;\r\n<!--** - /pages/dmstandard/adValues **-->\r\n \r\n\t\t</script>\r\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"http://img.thisismoney.co.uk/js/DARTFunctions_v1.js\"></script>\r\n\t\r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END AD -->\r\n<!--** - /pages/dmstandard/revScience **-->\r\n \r\n<!--** - /pages/dmstandard/header_includes **-->\r\n \r\n</head>\r\n \r\n<!--** - /pages/dmstandard/header **-->\r\n \r\n \r\n<body>\r\n \r\n \r\n<!--** /pages/dmstandard/openPage **-->\r\n \r\n \r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START MASTHEAD SECTION REMOVE -->\r\n \r\n<!--** /pages/dmstandard/logon_form **-->\r\n \r\n \r\n \r\n<form name=\"logon\" method=\"post\" action=\"\">\r\n<input type=\"hidden\" name=\"in_action\" value=\"5\" />\r\n<input type=\"hidden\" name=\"in_session\" value=\"\" />\r\n<input type=\"hidden\" name=\"in_success_url\" value=\"\" />\r\n<input type=\"hidden\" name=\"in_success_action\" value=\"\" />\r\n<input type=\"hidden\" name=\"in_failure_url\" value=\"\" />\r\n<input type=\"hidden\" name=\"in_failure_action\" value=\"\" />\r\n<input type=\"hidden\" name=\"in_redirect_url\" value=\"a\" />\r\n<input type=\"hidden\" name=\"in_expire\" value=\"\" />\r\n<input type=\"hidden\" name=\"in_edit\" value=\"\" />\r\n<input type=\"hidden\" name=\"in_email\" value=\"\" />\r\n<input type=\"hidden\" name=\"redirectPath\" value=\"\" />\r\n<input type=\"hidden\" name=\"EntryPath\" value=\"\" />\r\n<input type=\"hidden\" name=\"CompId\" value=\"\" />\r\n</form>\r\n \r\n<!--** - /pages/dmstandard/logon_form **-->\r\n \r\n \r\n<a name=\"pageTop\" id=\"pageTop\"></a>\r\n \r\n<div id=\"pageOuter\" class=\"pensions\">\r\n\t<div id=\"Page\">\r\n<!--** - /pages/dmstandard/openPage **-->\r\n \r\n \r\n \r\n<!--** /pages/dmstandard/mastHead **-->\r\n \r\n \r\n \r\n \r\n<div id=\"BannerSkinned\">\r\n\t<!-- top left masthead content -->\r\n\t<div id=\"BannerTopLeftArea\">\r\n\t\t<!-- Content removed from here by Scraper.replaceDynamicContent -->\r\n \r\n\t</div>\r\n\t<!--end of top left masthead content -->\r\n \r\n\t<!-- custom module Tim Welcome message -->\r\n\t<div class=\"puffArea\">\r\n\t\t<div class=\"welcomeTim\">\r\n  <h4>TOOLS: </h4>\r\n  <p class=\"puffContent\"><a href=\"http://www.thisismoney.co.uk/pensions/article.html?in_article_id=491084&in_page_id=6\">How is your pension performing?<br>\r\n›› <strong>Find out</strong>\r\n</a></p>\r\n  <a href=\"http://www.thisismoney.co.uk/pensions/article.html?in_article_id=491084&in_page_id=6\"><img src=\"http://img.thisismoney.co.uk/i/pix//2009/10//puffCornerISAadvice.gif\" class=\"puffImage\" title=\"A woman holding a sign - ISA advice\" alt=\"A woman holding a sign - ISA advice\" /></a>\r\n</div>\r\n \r\n\t</div>\r\n\t<!--end of custom module Tim Welcome message -->\r\n \r\n\t<!-- top right masthead content -->\r\n\t<div id=\"BannerTopRightArea\">\r\n\t\t<script type=\"text/javascript\">\r\n\t\tvar registration_url_anm = 'https://register.anm.co.uk';\r\n\t\tvar registration_url_money = 'https://register.thisismoney.co.uk/registration';\r\n\t\t</script>\r\n\t\t<script type=\"text/javascript\" src=\"http://img.thisismoney.co.uk/js/login_functions.js\"></script>\r\n\t\t\r\n\t\t<ul>\r\n\t\t<span id=\"loginArea\">\r\n\t\t\r\n\t\t<!-- Content replaced here by Scraper.removeLogin -->\r\n<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://www.thisismoney.co.uk/header-login.js\"></script>\r\n\t\t\r\n\t\t</span>\r\n\t\t<li><a href=\"http://www.thisismoney.co.uk/rss\"><img src=\"http://img.thisismoney.co.uk/i/std/tim_skin_0309/rss.gif\"\ttitle=\"RSS\" alt=\"RSS\" /></li>\r\n\t\t</ul>\r\n\t</div>\r\n\t<!-- end of top right masthead content -->\r\n \r\n\t<!-- banner ad -->\r\n\t\r\n<!--** /pages/dmstandard/top_ad **-->\r\n \r\n \r\n \r\n \r\n<!--** /pages/dmstandard/bannerAd **-->\r\n \r\n \r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START AD -->\r\n \r\n \r\n \r\n    \r\n\t\r\n<div id=\"BannerAd\">\r\n<div id=\"div3\" style=\"position:relative;\">\r\n\t\t<script type=\"text/javascript\">\r\n\t\t\tadverts.addToArray('div3', '468x60,728x90');\r\n\t\t</script>\r\n</div></div>\r\n\t\r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END AD -->\r\n<!--** - /pages/dmstandard/bannerAd **-->\r\n \r\n<!--** - /pages/dmstandard/top_ad **-->\r\n \r\n\t<!-- banner ad -->\r\n</div>\r\n \r\n<!-- Masthead, logo, search -->\r\n<div id=\"HeaderSkinned\">\r\n\t<div id=\"Logo\">\r\n\t\t<h1 title=\"This is Money\"><a href=\"http://www.thisismoney.co.uk/\"><span>This is Money</span></a></h1>\r\n\t</div>\r\n\t<div id=\"printLogo\"></div>\r\n\t<div id=\"strapline\">\r\n\t\t<h5 class=\"shadow\" title=\"Be your own financial adviser\">\r\n\t\t\t<a href=\"http://www.thisismoney.co.uk/\"><span>Be your own financial adviser\r\n</span></a>\r\n\t\t</h5>\r\n\t</div>\r\n\t\r\n\t\r\n<!--** /pages/dmstandard/searchHeader **-->\r\n \r\n \r\n \r\n \r\n \r\n<!--  search box -->\r\n<script language=\"Javascript\" type=\"text/javascript\" src=\"http://img.thisismoney.co.uk/js/cookies.js\"></script>\r\n<script language=\"Javascript\" type=\"text/javascript\"> \r\nfunction f_nktxtsrc(formName){\r\n  \r\n  var oForm = document.forms[formName];\r\n  var searchType = getSelectedSearchType(oForm);\r\n  var defaultSearch = 'article';\r\n  \r\n  // set cookie\r\n  if (defaultSearch == '' || searchType != defaultSearch){\r\n\tsetCookie('default_search', searchType , null);\r\n  }\r\n  \r\n  if ( searchType == \"company\" ) {\r\n    window.location.href=\"http://investing.thisismoney.co.uk/cgi-bin/digitalcorporate/thisismoney/companysearch.cgi?name=\"+oForm.searchPhrase.value;\r\n    return false; //dont do default form post\r\n  }/*\r\n  else {\r\n    var txtvl = oForm.searchPhrase.value;\r\n    if (txtvl.indexOf(\",\")>=0){\r\n      for (i=0;i<txtvl.length;i=i+1){\r\n        txtvl = txtvl.replace(\",\",\"\");\r\n      }\r\n    }\r\n    oForm.qrytxtc.value = txtvl;\r\n    return true;\r\n  }*/\r\n}\r\nfunction f_clear_search(oForm){\r\n\tif (oForm.searchPhrase.value == \"Search\") {\r\n\t\toForm.searchPhrase.value = \"\"; \r\n\t} \r\n}\r\nfunction getSelectedSearchType(oForm){\r\n\t\r\n\tvar searchType;\r\n\tfor( i = 0; i < oForm.searchTypeGroup.length; i++ ){\r\n\t\tif( oForm.searchTypeGroup[i].checked == true ){\r\n\t\t\tsearchType = oForm.searchTypeGroup[i].value;\r\n\t\t}\r\n\t}\r\n\treturn searchType;\r\n}\r\n \r\n</script>\r\n \r\n<div class=\"searchArea\">\r\n\t\r\n\t<form name=\"logohsrchfrm\" action=\"http://www.thisismoney.co.uk/search/results.html\" method=\"get\" onSubmit=\"return f_nktxtsrc('logohsrchfrm');\">\r\n\t\r\n\t<div class=\"searchRadio\">\r\n\t\t<label class=\"searchRadioArticle\">\r\n\t\t\t<input name=\"searchTypeGroup\" class=\"ieRadio\" type=\"radio\" value=\"article\" checked=\"checked\" />\r\n\t\t\tall Articles\r\n\t\t</label>\r\n\t\t<label class=\"searchRadioPrices\">\r\n\t\t\t<input name=\"searchTypeGroup\" class=\"ieRadio\" type=\"radio\" value=\"company\"  />\r\n\t\t\tShare prices\r\n\t\t</label>\r\n\t</div>\r\n\t<div id=\"searchDefined\" class=\"searchExtras\">\r\n\t\t\r\n\t    <input type=\"hidden\" name=\"in_page_id\" value=\"135\" />\r\n \r\n\t\t<input type=\"text\" class=\"searchField\" name=\"searchPhrase\" value='types of savings accounts'  \r\n\t\t\t   onfocus=\"clearform(this,'types of savings accounts')\"\r\n\t\t\t   onblur=\"if(this.value=='') this.value='types of savings accounts';\" />\r\n\t\t<button type=\"submit\">Search</button>\r\n\t\t<div class=\"spacer\"></div>\r\n\t</div>\r\n\t\r\n\t</form>\r\n</div>\r\n<!--** - /pages/dmstandard/searchHeader **-->\r\n \r\n</div>\r\n<!-- end of Masthead, logo, search -->\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END MASTHEAD SECTION REMOVE -->\r\n \r\n \r\n<!--** /pages/dmstandard/navigationMenu **-->\r\n \r\n \r\n<div id=\"HorizontalNav\" class=\"cleared\">\r\n\t<ul>\r\n\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \tclass=\"first\"\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/home/index.html?in_page_id=1\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tHome</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/news\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tNews</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/markets\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tMarkets</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/investing\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tInvesting</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/savings-and-banking\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tSavings &amp; banking</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/credit-and-loans\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tCredit &amp; loans</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/mortgages-and-homes\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tMortgages &amp; homes</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/insurance\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tInsurance</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        class=\"current\"\r\n        \r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/pensions\" \r\n\t\t\t>\r\n\t\t\tPensions</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/bargains-and-rip-offs\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tBargains &amp; rip-offs</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/tax\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tTax</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t<li \r\n\t\t\r\n\t\t\r\n        \r\n        \r\n        \r\n        \t\r\n        \t\t\t\t\t\t\t\t\t\r\n\t\t\tclass=\"last\"\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t><a href=\"http://www.thisismoney.co.uk/work\" \r\n\t\t\t rel=\"nofollow\">\r\n\t\t\tWork</a>\r\n\t\t</li>\r\n\t\t\r\n\t\r\n\t</ul>\r\n</div>\r\n \r\n<!--** - /pages/dmstandard/navigationMenu **-->\r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END SITEHEAD SECTION REMOVE -->\r\n<!--** - /pages/dmstandard/mastHead **-->\r\n \r\n \r\n \r\n<!--** /pages/dmstandard/lhs **-->\r\n \r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START LHS SECTION REMOVE -->\r\n<div id=\"MainNavGroupNew\">\r\n\t<div id=\"MainNavNew\">\r\n\t\t\r\n\t\t\r\n<!--** /pages/dmstandard/subNavigationMenu **-->\r\n \r\n \r\n \r\n  \r\n<!-- Vertical sub nav -->\r\n\t<div class=\"VerticalSubNav\">\r\n\t\t<div class=\"header\">\r\n\t\t\t\r\n\t\t  \t \r\n  \t\t \t\r\n  \t\t \t\t<h2>In this section</h2>\r\n  \t\t \t\r\n  \t\t\t\r\n\t\t</div>\r\n\t\t<ul class=\"HorizontalSubNavMenu\"> \r\n\t\t\r\n\t\t  \r\n\t\t\t\r\n\t\t\t\t<li><a href=\"http://www.thisismoney.co.uk/sipps\" \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t>\r\n\t\t\t\t\tSipps</a>\r\n\t\t\t\t</li>\r\n\t\t\t\r\n\t\t   \r\n  \t\t  \r\n  \t\t\r\n\t\t</ul>\r\n\t</div>\r\n<!-- end of Vertical sub nav -->\t\r\n \r\n<!--** - /pages/dmstandard/subNavigationMenu **-->\r\n \r\n \r\n\t\t <div class=\"VerticalNavModule\" id=\"Vertical_latest_deals\">\r\n   <div id=\"llghead_latest_deals\" class=\"llghead_lhs_latest_deals\">\r\n     <a href=\"http://www.thisismoney.co.uk/pensions-latest-deals\"><h2 title=\"Latest deals\"><span>Latest deals</span></h2></a>\r\n     <a class=\"all\" href=\"http://www.thisismoney.co.uk/pensions-latest-deals\">All</a>\r\n   </div>\r\n   <div id=\"llgitems_latest_deals\" class=\"llgitems_lhs_latest_deals\">\r\n     <ul>\r\n       <li id=\"llgitem_annuities\"><a href=\"http://www.thisismoney.co.uk/annuities\"  >Annuities</a></li>\r\n       <li id=\"llgitem_inheritance_tax\"><a href=\"http://www.thisismoney.co.uk/inheritance-tax-advice\"  >Inheritance tax</a></li>\r\n       <li id=\"llgitem_equity_release\"><a href=\"http://www.thisismoney.co.uk/equity-release\"  >Equity release</a></li>\r\n       <li id=\"llgitem_willwriting\"><a href=\"http://www.thisismoney.co.uk/will-writing-pensions\"  >Will-writing</a></li>\r\n     </ul>\r\n   </div>\r\n</div>\r\n<div class=\"VerticalNavModule\" id=\"Vertical_tips_guides\">\r\n   <div id=\"llghead_tips_guides\" class=\"llghead_lhs_tips_and_guides\">\r\n     <a href=\"http://www.thisismoney.co.uk/pensions-tips-and-guides\"><h2 title=\"Tips & guides\"><span>Tips & guides</span></h2></a>\r\n     <a class=\"all\" href=\"http://www.thisismoney.co.uk/pensions-tips-and-guides\">All</a>\r\n   </div>\r\n   <div id=\"llgitems_tips_guides\" class=\"llgitems_lhs_tips_and_guides\">\r\n     <ul>\r\n       <li id=\"llgitem_annuities_explained\"><a href=\"http://www.thisismoney.co.uk/pensions/tips-and-guides/article.html?in_advicepage_id=125&in_article_id=413553&in_page_id=53965\"  >Annuities explained</a></li>\r\n       <li id=\"llgitem_sipps\"><a href=\"http://www.thisismoney.co.uk/pensions/tips-and-guides/article.html?in_advicepage_id=125&in_article_id=396020&in_page_id=53965\"  >Sipps</a></li>\r\n       <li id=\"llgitem_final_salary_schemes\"><a href=\"http://www.thisismoney.co.uk/pensions/tips-and-guides/article.html?in_advicepage_id=125&in_article_id=395462&in_page_id=53965\"  >Final salary schemes</a></li>\r\n       <li id=\"llgitem_pension_credits\"><a href=\"http://www.thisismoney.co.uk/pensions/tips-and-guides/article.html?in_advicepage_id=125&in_page_id=53965&in_article_id=396018\"  >Pension credits</a></li>\r\n       <li id=\"llgitem_state_second_pension\"><a href=\"http://www.thisismoney.co.uk/pensions/tips-and-guides/article.html?in_advicepage_id=125&in_article_id=395454&in_page_id=53965\"  >State Second Pension</a></li>\r\n     </ul>\r\n   </div>\r\n</div>\r\n<div class=\"VerticalNavModule\" id=\"Vertical_calculators\">\r\n   <div id=\"llghead_calculators\" class=\"llghead_lhs_calculators\">\r\n     <a href=\"http://www.thisismoney.co.uk/pensions-calculators\"><h2 title=\"Calculators\"><span>Calculators</span></h2></a>\r\n     <a class=\"all\" href=\"http://www.thisismoney.co.uk/pensions-calculators\">All</a>\r\n   </div>\r\n   <div id=\"llgitems_calculators\" class=\"llgitems_lhs_calculators\">\r\n     <ul>\r\n       <li id=\"llgitem_pensions_pot\"><a href=\"http://www.thisismoney.co.uk/pension-pot-calculator\"  >Pensions pot</a></li>\r\n       <li id=\"llgitem_pension_protection\"><a href=\"http://www.thisismoney.co.uk/pension-protection-fund-calculator\"  >Pension Protection</a></li>\r\n     </ul>\r\n   </div>\r\n</div>\r\n<div class=\"VerticalNavModule\" id=\"Vertical_ask_an_expert\">\r\n   <div id=\"llghead_ask_an_expert\" class=\"llghead_lhs_ask_an_expert\">\r\n     <a href=\"http://www.thisismoney.co.uk/pensions-ask-an-expert\"><h2 title=\"Ask an expert\"><span>Ask an expert</span></h2></a>\r\n   </div>\r\n   <div id=\"llgitems_ask_an_expert\" class=\"llgitems_lhs_ask_an_expert\">\r\n     <ul>\r\n       <li id=\"llgitem_recent_answers\"><a href=\"http://www.thisismoney.co.uk/pensions-ask-an-expert\"  >Recent answers</a></li>\r\n       <li id=\"llgitem_ask_a_question\"><a href=\"http://www.thisismoney.co.uk/pensions-ask-a-question\"  >Ask a question</a></li>\r\n       <li id=\"llgitem_full_archive\"><a href=\"http://www.thisismoney.co.uk/pensions/ask-an-expert/archive.html?in_channel_id=130&in_page_id=138\"  >Full archive</a></li>\r\n       <li id=\"llgitem_experts_home\"><a href=\"http://www.thisismoney.co.uk/ask-an-expert\"  >Experts home</a></li>\r\n     </ul>\r\n   </div>\r\n</div>\r\n<div class=\"VerticalNavModule\" id=\"Vertical_money_extras\">\r\n   <div id=\"llghead_money_extras\" class=\"llghead_lhs_money_extras\">\r\n     <a href=\"http://www.thisismoney.co.uk/money-extras\"><h2 title=\"Money extras\"><span>Money extras</span></h2></a>\r\n     <a class=\"all\" href=\"http://www.thisismoney.co.uk/money-extras\">All</a>\r\n   </div>\r\n   <div id=\"llgitems_money_extras\" class=\"llgitems_lhs_money_extras\">\r\n     <ul>\r\n       <li id=\"llgitem_jargon_buster\"><a href=\"http://www.thisismoney.co.uk/jargon-buster\"  >Jargon buster</a></li>\r\n       <li id=\"llgitem_financial_healthcheck\"><a href=\"http://www.thisismoney.co.uk/financial-healthcheck\"  Target=\"_blank\">Financial healthcheck</a></li>\r\n       <li id=\"llgitem_one_money_tip_a_day\"><a href=\"http://www.thisisnotwork.co.uk\"  Target=\"_blank\">One money tip a day</a></li>\r\n       <li id=\"llgitem_free_newsletters\"><a href=\"http://www.thisismoney.co.uk/newslettersignup\"  >Free newsletters</a></li>\r\n       <li id=\"llgitem_midas_extra\"><a href=\"http://www.thisismoney.co.uk/midas-extra\"  >Midas Extra</a></li>\r\n       <li id=\"llgitem_message_boards\"><a href=\"http://boards.thisismoney.co.uk/tim/index.jsp\"  >Message boards</a></li>\r\n       <li id=\"llgitem_polls\"><a href=\"http://www.thisismoney.co.uk/polls\"  >Polls</a></li>\r\n       <li id=\"llgitem_quizzes\"><a href=\"http://www.thisismoney.co.uk/quizzes\"  >Quizzes</a></li>\r\n       <li id=\"llgitem_celebrity_money\"><a href=\"http://www.thisismoney.co.uk/celebrity\"  >Celebrity money</a></li>\r\n       <li id=\"llgitem_tim_on_netvibes\"><a href=\"http://www.netvibes.com/thisismoney\"  >TiM on Netvibes</a></li>\r\n     </ul>\r\n   </div>\r\n</div>\r\n<div id=\"TextPromo\">\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START AD -->\r\n<div id=\"div061\" style=\"position:relative;\">\r\n<script type=\"text/javascript\"> \r\nadverts.addToArray('div061', '160x90');\r\n</script>\r\n</div>\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END AD -->\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START AD -->\r\n<div id=\"div062\" style=\"position:relative;\">\r\n<script type=\"text/javascript\"> \r\nadverts.addToArray('div062', '160x90');\r\n</script>\r\n</div>\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END AD -->\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START AD -->\r\n<div id=\"div063\" style=\"position:relative;\">\r\n<script type=\"text/javascript\"> \r\nadverts.addToArray('div063', '160x90');\r\n</script>\r\n</div>\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END AD -->\r\n</div>\r\n<div style=\"clear: both; display: block;\"></div>\r\n<br clear=\"all\" />\r\n <!-- Content removed from here by Scraper.removeGoogleAd -->\r\n<div class=\"VerticalNavModule\" id=\"Vertical_a_hrefforumsmessage_boardsa\">\r\n   <div id=\"llghead_a_hrefforumsmessage_boardsa\" class=\"llghead_lhs_message_boards__forums\">\r\n    <h2 title=\"<a href=/forums>Message boards</a>\"><span><a href=/forums>Message boards</a></span></h2>\r\n   </div>\r\n   <div id=\"llgitems_a_hrefforumsmessage_boardsa\" class=\"llgitems_lhs_message_boards__forums\">\r\n     <ul>\r\n       <li id=\"llgitem_rsaquorsaquo_strongnewsstrong\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=103\"  >&rsaquo;&rsaquo; <strong>News</strong></a></li>\r\n       <li id=\"llgitem_public_sector_perks\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=24&thread=98553&message=444008\"  >Public sector perks</a></li>\r\n       <li id=\"llgitem_fat_cat_pay\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=43&thread=98335&message=441637\"  >Fat cat pay</a></li>\r\n       <li id=\"llgitem_petrol_ripoff\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=24&thread=98504&message=443490\"  >Petrol rip-off</a></li>\r\n       <li id=\"llgitem_rsaquorsaquo_strongstocks_sharesstrong\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=85\"  >&rsaquo;&rsaquo; <Strong>Stocks & shares</strong></a></li>\r\n       <li id=\"llgitem_short_plays\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=85&thread=81922&message=274979\"  >Short plays</a></li>\r\n       <li id=\"llgitem_rsaquorsaquo_strongmortgagesstrong\"><a href=\"http://www.thisismoney.co.uk/housepricechat\"  >&rsaquo;&rsaquo; <strong>Mortgages</strong></a></li>\r\n       <li id=\"llgitem_overpaying\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=78&thread=98647&message=445040\"  >Overpaying</a></li>\r\n       <li id=\"llgitem_interest_only\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=78&thread=97674&message=432973\"  >Interest only</a></li>\r\n       <li id=\"llgitem_rsaquorsaquo_strongmoney_saversstrong\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=112\"  >&rsaquo;&rsaquo; <strong>Money savers</strong></a></li>\r\n       <li id=\"llgitem_discount_vouchers\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=112&thread=90099&message=350519\"  >Discount vouchers</a></li>\r\n       <li id=\"llgitem_free_music\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=112&thread=98434&message=442785\"  >Free music</a></li>\r\n       <li id=\"llgitem_rsaquorsaquo_strongsaving_bankingstrong\"><a href=\"http://www.thisismoney.co.uk/savingschat\"  >&rsaquo;&rsaquo; <strong>Saving & banking</strong></a></li>\r\n       <li id=\"llgitem_isa_advice\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=43&thread=98622&message=444812\"  >Isa advice</a></li>\r\n       <li id=\"llgitem_online_id_fraud\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=43&thread=98636&message=444948\"  >Online ID fraud</a></li>\r\n       <li id=\"llgitem__strongcards_debtstrong\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=87\"  >›› <strong>Cards & debt</strong></a></li>\r\n       <li id=\"llgitem_defaulted_payments\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=87&thread=98061&message=438129\"  >Defaulted payments</a></li>\r\n       <li id=\"llgitem_unenforceable_debts\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=87&thread=97312&message=428930\"  >Unenforceable debts</a></li>\r\n       <li id=\"llgitem_rsaquorsaquo_strongpensionsstrong\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=89\"  >&rsaquo;&rsaquo; <Strong>Pensions</strong></a></li>\r\n       <li id=\"llgitem_final_salary\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=89&thread=98683&message=445417\"  >Final salary</a></li>\r\n       <li id=\"llgitem_sipp_safety\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=89&thread=98372&message=442034\"  >Sipp safety</a></li>\r\n       <li id=\"llgitem__rsaquorsaquo_strongtax_advicestrong\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=90\"  > &rsaquo;&rsaquo; <strong>Tax advice</strong></a></li>\r\n       <li id=\"llgitem_tax_bill_trouble\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=90&thread=98641&message=445011\"  >Tax bill trouble</a></li>\r\n       <li id=\"llgitem_suspicious_will\"><a href=\"http://boards.thisismoney.co.uk/tim/threadnonInd.jsp?forum=90&thread=98475&message=443295\"  >Suspicious will</a></li>\r\n       <li id=\"llgitem_rsaquorsaquo_strongspecialsstrong\"><a href=\"http://boards.thisismoney.co.uk/tim/index.jsp?cat=9\"  >&rsaquo;&rsaquo; <strong>Specials</strong></a></li>\r\n       <li id=\"llgitem_bank_charges\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=106\"  >Bank charges</a></li>\r\n       <li id=\"llgitem_customer_service\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=107\"  >Customer service</a></li>\r\n       <li id=\"llgitem_northern_rock\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=114\"  >Northern Rock</a></li>\r\n       <li id=\"llgitem_paypal_problems\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=104\"  >PayPal problems</a></li>\r\n       <li id=\"llgitem_reclaiming_ppi\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=110\"  >Reclaiming PPI</a></li>\r\n       <li id=\"llgitem_share_scams\"><a href=\"http://boards.thisismoney.co.uk/tim/forum.jsp?forum=109\"  >Share scams</a></li>\r\n       <li id=\"llgitem___strongall_the_forumsstrong\"><a href=\"http://www.thisismoney.co.uk/chat\"  > ›› <strong>All the forums</strong></a></li>\r\n     </ul>\r\n   </div>\r\n</div>\r\n \r\n\t\r\n\t</div>\r\n</div>\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END LHS SECTION REMOVE -->\r\n<!--** - /pages/dmstandard/lhs **-->\r\n \r\n \r\n \r\n<div id=\"ContentGroup\">\r\n \r\n \r\n<!--** /pages/dmstandard/breadcrumb **-->\r\n \r\n \r\n<!-- BreadCrumb -->\r\n \r\n \r\n<div id=\"bread-crumbs\">\r\n\t\r\n\t\r\n\t<li class=\"first\">\r\n\t\t<a href=\"http://www.thisismoney.co.uk/\">Home</a>\r\n\t</li>\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n  \t \r\n\t\r\n\t\t<li class=\"last\">\r\n\t\t\t<a href=\"http://www.thisismoney.co.uk/pensions\">Pensions</a>\r\n\t\t</li>\r\n\t\r\n\t\r\n</div>\r\n \r\n<!--end of BreadCrumb -->\r\n \r\n<!--** - /pages/dmstandard/breadcrumb **-->\r\n \r\n \r\n<div id=\"MainContent2Col\">\r\n<a name=\"endAds\" id=\"endAds\"></a>\r\n<a name=\"startcontent\" id=\"startcontent\"></a>\r\n \r\n<!-- YOUR CONTENT HERE -->\r\n<!--MSCONTENT-->\r\n \r\n \r\n<!--** /pages/dmstandard/closeMainContent **-->\r\n \r\n \r\n \r\n<!--** /pages/msc/googleFooterAd **-->\r\n \r\n<br clear=\"all\" />\r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START SCRAPE REMOVE -->\r\n<!-- Content removed from here by Scraper.removeGoogleAd -->\r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END SCRAPE REMOVE -->\r\n \r\n \r\n<!--** - /pages/msc/googleFooterAd **-->\r\n \r\n \r\n</div> <!-- close main content -->\r\n<!--** - /pages/dmstandard/closeMainContent **-->\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n<!--** /pages/dmstandard/closeContentGroup **-->\r\n</div> <!-- close content group -->\r\n \r\n</div> <!-- close Page -->\r\n \r\n</div> <!-- close pageOuter -->\r\n<!--** - /pages/dmstandard/closeContentGroup **-->\r\n \r\n \r\n \r\n<!--** /pages/dmstandard/footer **-->\r\n \r\n \r\n \r\n \r\n \r\n\t<!-- TEMPLATE CONTROL - DO NOT REMOVE - START FOOTER SECTION REMOVE -->\r\n  \r\n  \t<div id=\"toggleFooter\">\r\n \r\n\t\t<!-- Footer search start-->\r\n\t\t<div id=\"footerSearch\">\r\n\t\t\t<div class=\"footerWrap\">\r\n\t\t\t\t<form id=\"formBottomSearch\" name=\"formBottomSearch\" method=\"get\" action=\"http://www.thisismoney.co.uk/search/results.html\" onSubmit=\"return f_nktxtsrc('formBottomSearch');\" class=\"footerSearchFix\">\r\n\t\t\t\t<input type=\"text\" name=\"searchPhrase\" class=\"footerSearchtextfield\" value='types of savings accounts' onfocus=\"clearform(this,'types of savings accounts')\" onblur=\"if(this.value=='') this.value='types of savings accounts';\" />\r\n\t\t\t\t<button type=\"submit\">GO</button>\r\n\t\t\t\t<div class=\"footersearchRadio\">\r\n\t\t\t\t\t<label class=\"footerSearchRadioArticle\"><input name=\"searchTypeGroup\" class=\"ieRadio\" type=\"radio\" value=\"article\" checked=\"checked\" /> All articles</label>\r\n\t\t\t\t\t<label class=\"footerSearchRadioPrices\"><input name=\"searchTypeGroup\" class=\"ieRadio\"  type=\"radio\" value=\"company\"  /> Share prices</label>\r\n\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t</div>\r\n \r\n\t\t<!-- Footer search end -->\r\n\t\t<div id=\"toggleFooterContain\">\r\n\t\t\t<ul class=\"toggle-footer\">\r\n\t\t\t\t<li class=\"toggle-selected\"><a href=\"#toggle-sitemap\"><span>SITEMAP</span></a></li>\r\n\t\t\t</ul>\r\n\t\t</div>\r\n\t\t\r\n\t\t<div class=\"toggle-container\" id=\"toggle-sitemap\">\r\n\t\t\t<div class=\"toggleFooterWrap\">\r\n\t\t\t\t\r\n\t\t\t\t<!-- Footer 1st tab content start - positions 1 and 2 -->\r\n\t\t\t\t<div id=\"footerSitemap\">\r\n\t\t\t\t    <div class=\"footerRowWrap\">\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t<!-- footer position 1 -->\t\r\n\t\t\t\t\t\t<div class=\"FooterModule\" id=\"Footer_news\">\r\n   <div id=\"llghead_foot_news\" class=\"llghead_foot_news\">\r\n   <h2>News</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_news\" class=\"llgitems_foot_news\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/latest-headlines\">Latest headlines</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/special-reports\">Special reports</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/opinion\">Opinion</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_savings_banking\">\r\n   <div id=\"llghead_foot_savings_banking\" class=\"llghead_foot_savings_banking\">\r\n   <h2>Savings & banking</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_savings_banking\" class=\"llgitems_foot_savings_banking\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/best-savings-rates\">Best savings rates</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/safe-savings\">Safe savings</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/isa-advice\">Isa advice</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/bank-charges\">Bank charges</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/bank-strength\">Bank strength</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/premium-bonds\">Premium bonds</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/savings-and-banking-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/savings-and-banking-tips-and-guides\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/savings-and-banking-calculators\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/savings-and-banking-ask-an-expert\">Ask an expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_mortgages_homes\">\r\n   <div id=\"llghead_foot_mortgages_homes\" class=\"llghead_foot_mortgages_homes\">\r\n   <h2>Mortgages & homes</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_mortgages_homes\" class=\"llgitems_foot_mortgages_homes\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/mortgages-features\">Mortgages features</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/house-prices\">House prices</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/homes-abroad\">Homes abroad</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/buy-to-let\">Buy to let</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/endowments\">Endowments</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/stamp-duty\">Stamp duty</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/mortgages-and-homes-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/mortgages-and-homes-tips-and-guides\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/mortgages-and-homes-calculators\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/mortgages-and-homes-ask-an-expert\">Ask an expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_pensions\">\r\n   <div id=\"llghead_foot_pensions\" class=\"llghead_foot_pensions\">\r\n   <h2>Pensions</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_pensions\" class=\"llgitems_foot_pensions\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/sipps\">Sipps</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/pensions-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/pensions-latest-deals\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/pensions-calculators\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/pensions-ask-an-expert\">Ask an expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_work\">\r\n   <div id=\"llghead_foot_work\" class=\"llghead_foot_work\">\r\n   <h2>Work</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_work\" class=\"llgitems_foot_work\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/small-business\">Small business</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/financial-mail-enterprise\">Financial Mail Enterprise</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/millionaire-interviews\">Millionaire interviews</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/work-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/work-tips-and-gudies\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/work-calculators\">Calculators</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_money_extras\">\r\n   <div id=\"llghead_foot_money_extras\" class=\"llghead_foot_money_extras\">\r\n   <h2>Money extras</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_money_extras\" class=\"llgitems_foot_money_extras\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/jargon\">Jargon buster</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/fsa-financial-healthcheck\">Financial healthcheck</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/this-is-money-video\">Video</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/polls\">Polls</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/quizzes\">Quizzes</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/campaigns\">Campaigns</a></li>\r\n         <li><a href=\"http://www.thisisnotwork.co.uk\">This is Not Work</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n</div>\r\n<div class=\"footerRowWrap\">\r\n<div class=\"FooterModule\" id=\"Footer_markets\">\r\n   <div id=\"llghead_foot_markets\" class=\"llghead_foot_markets\">\r\n   <h2>Markets</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_markets\" class=\"llgitems_foot_markets\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/companies-in-the-news\">Companies in the news</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/market-data\">Market data</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/economy\">Economy</a></li>\r\n         <li><a href=\"javascript:redirectLoggedIn('http://investing.thisismoney.co.uk/cgi-bin/digitalcorporate/thisismoney/portfolio_valuation.cgi','https://register.thisismoney.co.uk/registration/loginPowerPortfolio?redirectPath=http://investing.thisismoney.co.uk/cgi-bin/digitalcorporate/thisismoney/portfolio_valuation.cgi')\">Power portfolio</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/share-price\">Share price</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_credit_loans\">\r\n   <div id=\"llghead_foot_credit_loans\" class=\"llghead_foot_credit_loans\">\r\n   <h2>Credit & loans</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_credit_loans\" class=\"llgitems_foot_credit_loans\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/credit-cards\">Credit cards</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/loans\">Loans</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/ppi-mis-selling\">PPI mis-selling</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/dealing-with-debt\">Dealing with debt</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/id-fraud\">ID fraud</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/credit-and-loans-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/credit-and-loans-tips-and-guides\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/credit-and-loans-calculators\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/credit-and-loans-ask-an-expert\">Ask a credit expert</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/dealing-with-debt-ask-an-expert\">Ask a debt expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_insurance\">\r\n   <div id=\"llghead_foot_insurance\" class=\"llghead_foot_insurance\">\r\n   <h2>Insurance</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_insurance\" class=\"llgitems_foot_insurance\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/household\">Household</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/car\">Car</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/health\">Health</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/travel-insurance\">Travel</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/pet\">Pet</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/insurance-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/insurance-tips-and-guides\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/insurance-calculators\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/insurance-ask-an-expert\">Ask an expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_bargains_rip_offs\">\r\n   <div id=\"llghead_foot_bargains_rip_offs\" class=\"llghead_foot_bargains_rip_offs\">\r\n   <h2>Bargains & Rip offs</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_bargains_rip_offs\" class=\"llgitems_foot_bargains_rip_offs\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/household-bills\">Household bills</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/travel\">Travel</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/motoring\">Motoring</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/broadband\">Broadband & phones</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/money-saving-ideas\">Money saving ideas</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/bargains-and-rip-offs-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/bargains-and-rip-offs-tips-and-guides\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/bargains-and-rip-offs-calculator\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/bargains-and-rip-offs-ask-an-expert\">Ask an expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_hidden_gems\">\r\n   <div id=\"llghead_foot_hidden_gems\" class=\"llghead_foot_hidden_gems\">\r\n   <h2>Hidden gems</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_hidden_gems\" class=\"llgitems_foot_hidden_gems\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/celebrity\">Celebrity money</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/caringconsumer\">Caring consumer</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/customer-service\">Customer service</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_about_us\">\r\n   <div id=\"llghead_foot_about_us\" class=\"llghead_foot_about_us\">\r\n   <h2>About us</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_about_us\" class=\"llgitems_foot_about_us\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/independence\">Our independence</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/contact-us\">Contact us</a></li>\r\n         <li><a href=\"http://www.and.co.uk/what/thisismoney.html\">Advertise with us</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/faqs\">FAQs</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n</div>\r\n<div class=\"footerRowWrap\">\r\n<div class=\"FooterModule\" id=\"Footer_investing\">\r\n   <div id=\"llghead_foot_investing\" class=\"llghead_foot_investing\">\r\n   <h2>Investing</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_investing\" class=\"llgitems_foot_investing\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/share-tips-and-fund-tips\">Share and fund tips</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/fund-performance\">Fund performance</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/investing-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/investing-tips-and-gudies\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/investing-calculators\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/investing-ask-an-expert\">Ask an expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_tax\">\r\n   <div id=\"llghead_foot_tax\" class=\"llghead_foot_tax\">\r\n   <h2>Tax</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_tax\" class=\"llgitems_foot_tax\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/income\">Income</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/council\">Council</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/inheritance\">Inheritance</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/wills\">Wills</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/giving\">Giving</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/tax-tables\">Tax tables</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/tax-latest-deals\">Money saving tools</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/tax-tips-and-guides\">Tips & guides</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/tax-calculators\">Calculators</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/tax-ask-an-expert\">Ask an expert</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_forums\">\r\n   <div id=\"llghead_foot_forums\" class=\"llghead_foot_forums\">\r\n   <h2>Forums</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_forums\" class=\"llgitems_foot_forums\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/discuss-the-news\">News & city</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/discuss-shares\">Shares & markets</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/housepricechat\">Homes, house prices</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/bankingchat\">Banking, saving</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/scams-chat\">Scams & rip offs</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/money-saving-chat\">Money saving tips</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/message-boards\">All</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n<div class=\"FooterModule\" id=\"Footer_blogs\">\r\n   <div id=\"llghead_foot_blogs\" class=\"llghead_foot_blogs\">\r\n   <h2>Blogs</h2>\r\n   </div>\r\n   <div id=\"llgitems_foot_blogs\" class=\"llgitems_foot_blogs\">\r\n      <ul>\r\n         <li><a href=\"http://www.thisismoney.co.uk/house-price-blog\">Mortgages</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/consumer-fight-back-blog\">Consumer rage</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/credit-card-blog\">Credit & loans</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/funny-money-blog\">Funny money</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/make-money-blog\">Making money</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/saving-blog\">Savings & banking</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/money-saving-blog\">Money savers</a></li>\r\n         <li><a href=\"http://www.thisismoney.co.uk/blogall\">All</a></li>\r\n      </ul>\r\n   </div>\r\n</div>\r\n \r\n\t\t\t\t\t\t<!-- end footer position 1 -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t<div class=\"editorialShort\">\r\n\t\t\t\t\t\t\t<!-- footer position 2 -->\r\n\t\t\t\t\t\t\t  <div id=\"editorialtimAbout\">\r\n    <p>\r\n      <a href=\"http://www.thisismoney.co.uk/who-are-we\">This is Money brings you the best business, personal finance and consumer news. We hold big business to account by looking out for the interests of shareholders and coming to the defence of UK consumers.\r\n        <span class=\"block\">Read more about this</span>\r\n        <img src=\"http://img.thisismoney.co.uk/i/std/tim_skin_0309/dmmosLogoFooter.gif\" class=\"block\" alt=\"Daily mail &amp; Mail on Sunday\" title=\"Daily mail &amp; Mail on Sunday width=\"200\" height=\"34\"/>\r\n      </a>\r\n    </p>\r\n  </div>\r\n \r\n\t\t\t\t\t\t\t<!-- end footer position 2 -->\r\n\t\t\t\t    \t</div>\r\n\t\t\t\t    </div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<!-- Footer 1st tab content end -->\r\n \r\n\t\t\t</div>\r\n\t\t</div> \r\n \r\n\t\t<!-- Footer copyright & legal start-->\r\n\t\t<div class=\"footerCopy\">\r\n\t\t\t<div class=\"filler\"></div>\r\n \r\n\t\t\t<div id=\"footerCopyWrap\">  \r\n\t\t\t\t<div id=\"toTop\"><img src=\"http://img.thisismoney.co.uk/i/std/tim_skin_0309/pageUp.gif\"><a href=\"#pageTop\" class=\"topGo\" >BACK TO TOP</a></div>\r\n\t\t\t\t<img src=\"http://img.thisismoney.co.uk/i/std/tim_skin_0209/andLogoBG.gif\" id=\"andLogo\" alt=\"Associated Newspapers Limited\" title=\"Associated Newspapers Limited\" />\r\n\t\t\t\t<p>This is Money is part of the Daily Mail, The Mail on Sunday &amp; Metro Media Group</p>\r\n\t\t\t\t<p> &copy; Associated Newspapers Limited 2009</p>\r\n\t\t\t\t<a href=\"http://www.thisismoney.co.uk/terms\" title=\"\">Terms</a> \r\n\t\t\t\t<a href=\"http://www.thisismoney.co.uk/privacy\" title=\"\">Privacy policy</a> \r\n\t\t\t\t<a href=\"http://www.thisismoney.co.uk/sitemap\" title=\"\">Site map</a>\r\n\t\t\t\t<a href=\"http://www.and.co.uk/what/thisismoney.html\" title=\"\">Advertise with us</a>\r\n\t\t\t\t<a href=\"http://www.thisismoney.co.uk/contactus\" title=\"\">Contact us</a></p>  \r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<!-- Footer copyright & legal end-->\r\n \r\n\t</div> <!-- end toggleFooter -->\r\n\t\r\n\t<!-- TEMPLATE CONTROL - DO NOT REMOVE - END FOOTER SECTION REMOVE -->\r\n<!--** - /pages/dmstandard/footer **-->\r\n \r\n \r\n</div> <!-- close page master -->\r\n \r\n \r\n<!--** /pages/dmstandard/intellitracker **-->\r\n \r\n \r\n \r\n \r\n<script>\r\nvar itrMId = 227; var itrRqstH = \"anm.intelli-direct.com\";\r\n</script>\r\n<script type=\"text/javascript\" src=\"http://anm.intelli-direct.com/e/clicks.js\"></script>\r\n \r\n<!-- Start of IntelliTracker Page Tag -->\r\n<script language=\"javascript\" type=\"text/javascript\"><!--\r\nvar pqry=\"itn%3DThis%20is%20Money%20:%20Pensions%20:%20%20:%20\";\r\n \r\nvar rqry=\"iREGQry\";\r\nvar sqry=\"iSale\";\r\n \r\nvar dt=window.document,nr=navigator,ina=nr.appName,sr=\"0&0\",px=0,sv=10,je=0;\r\nvar\tinav=nr.appVersion,iie=inav.indexOf('MSIE '),intp=(ina.indexOf('Netscape')>=0);\r\nif(iie>0)inavi=parseInt(inav.substring(iie+5));else inavi=parseFloat(inav);\r\n//--></script><script language=\"javascript1.1\"><!-- \r\nsv=11;je=(nr.javaEnabled()?1:2);\r\n//--></script><script language=javascript1.2><!--\r\nsv=12;s=screen;px=(iie>0?s.colorDepth:s.pixelDepth);sr=s.width+\"&\"+s.height;\r\n//--></script><script language=javascript1.3>\r\nsv=13;\r\n</script><script language='javascript'><!-- \r\nfunction irs(s,f,r){var p=s.indexOf(f);while(p>=0){s=s.substring(0,p)+r+s.substring(p+f.length,s.length);p=s.indexOf(f)}return s}\r\nfunction cesc(s){if(s.length>0) return irs(irs(irs(irs(irs(s,'+','%2B'),'.','%2E'),'/','%2F'),'=','%3D'),'&','%26') ; else return s;}\r\nfunction iesc(s){return cesc(escape(s));} \r\nfunction gpr(){\r\nvar pr='', ipw=window, ipr='window', iwL='', ipL='';\r\nwhile (ipL==iwL){\r\niw=ipw; pr=iw.document.referrer;\r\nif(intp) break;if((''+iw.parent.location)=='')break;\r\niwL=(iw.document.location.protocol+'\\/\\/'+iw.document.location.hostname).toLowerCase();\r\nipL=pr.substring(0,iwL.length).toLowerCase();\r\nipr=ipr+'.parent'; ipw=eval(ipr); if (iw==ipw) break;}return pr;}\r\nfunction itrc(){var nw=new Date(),ce=2,iul='';\r\nif (dt.cookie) ce=1;\r\nelse {var ex=new Date(nw.getTime()+1000); dt.cookie=\"itc=3; EXPIRES=\"+ex.toGMTString()+\"; path=/\";if (dt.cookie) ce=1;}\r\nif(inavi>=4) iul=iesc(iie>0&&nr.userLanguage?nr.userLanguage:nr.language);\r\nvar un=Math.round(Math.random()*2100000000);\r\nil=isl+un+\"&\"+iesc(gpr())+\"%20&\"+cesc(pqry)+\"%20&\"+cesc(rqry)+\"%20&\"\r\n+cesc(sqry)+\"%20&\"+ce+\"&\"+sr+\"&\"+px+\"&\"+je+\"&\"+sv+\"&\"+iul+\"%20&\"+nw.getTimezoneOffset()+\"&\"+iesc(idl)+\"%20\";\r\nif(iie>0 && il.length>2045)il=il.substring(0,2045);\r\nvar iin='itr227', iwri=true;\r\nif(dt.images){if(!dt.images[iin])dt.write('<i'+'mg name=\"'+iin+'\" height=1 width=1 border=0>');\r\nif(dt.images[iin]){dt.images[iin].src=il+'&0';iwri=false;}}\r\nif(iwri)dt.write('<i'+'mg sr'+'c=\"'+il+'&0\" width=1 height=1 border=0>');}\r\nvar idl=window.location.href;var isl=\"http\"+(idl.indexOf('https:')==0?'s':'')+\"://anm.intelli-direct.com/e/t3.dll?227&\";\r\nitrc();\r\n//--></script>\r\n<script language=\"JavaScript\"><!--\r\nif(iie>0)dt.write(\"\\<\\!--\");\r\n//--></script><noscript>\r\n<img src='http://anm.intelli-direct.com/e/t3.dll?227&0&%20&iAddPAR&iREGQry&iSale&0&0&0&0&0&0&%20&1500&%20&0' height=1 width=1 border=0>\r\n</noscript><!--//-->\r\n<!-- End of IntelliTracker Page Tag -->\r\n \r\n<!-- Start of WebTrends tag -->\r\n \r\n<!-- End of WebTrends tag -->\r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - START AD -->\r\n<!-- Ad functions -->\r\n \r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END AD -->\r\n \r\n <!-- TEMPLATE CONTROL - DO NOT REMOVE - START SCRAPE REMOVE -->\r\n \r\n<!-- Start Revenue Science Tag -->\r\n \r\n<script type=\"text/javascript\" language=\"javascript\" src=\"http://js.revsci.net/gateway/gw.js?csid=D05509\" charset=\"ISO-8859-1\"></script>\r\n<script type=\"text/javascript\"> \r\n\tDM_tag();\r\n</script>\r\n<noscript>\r\n\t<img src=\"http://pix01.revsci.net/D05509/a3/0/0/0/0/0/0/0/0/0/noscript.gif\" />\r\n</noscript>\r\n\t\r\n<!-- End Revenue Science Tag -->\r\n \r\n<!-- TEMPLATE CONTROL - DO NOT REMOVE - END SCRAPE REMOVE -->\r\n \r\n<!-- Start Sophus3 logging tag -->\r\n<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://img.thisismoney.co.uk/sophus3/logging.js\"></script>\r\n<!-- End Sophus3 logging tag -->\r\n \r\n<!-- start temp script call for Insight -->\r\n<script src=\"http://reporting.eu-survey.com/overlays/ANDw3/papers/AudienceDynamics09Overlay_live.js\"></script> \r\n<!-- end temp script call for Insight -->\r\n<!--** - /pages/dmstandard/intellitracker **-->\r\n \r\n \r\n</body>\r\n \r\n</html>\r\n \r\n<!-- Rendered for SK#0|ST#0|PG#6|Name[tim] Filter[N] Images[Y] CSS[/style] ShowDefCon[Y] -->\r\n \r\n<!-- Rendered for SK#null|ST#null|PG#6|Name[null] Filter[null] Images[null] CSS[null] ShowDefCon[null] -->\r\n\r\n

                                              
1:

Select allOpen in new window

 

by: sumesh_kashishPosted on 2009-10-14 at 22:27:39ID: 25577468

Can you give me the code that you have written so that i can get a clearer idea

 

by: WingYipPosted on 2009-10-15 at 01:13:27ID: 25578335

Sure

Its placed in the render event of the page so that we can inject our html with our partner sites code.

Wing

protected override void Render(HtmlTextWriter writer)
        {
            StreamReader fp = default(StreamReader);
            //Dim STR As String
            fp = File.OpenText(Server.MapPath("/TextFile1.txt"));
 
            //STR = fp.ReadToEnd()
            using (System.IO.MemoryStream msOur = new MemoryStream())
            {
                using (System.IO.StreamWriter swOur = new StreamWriter(msOur))
                {
                    HtmlTextWriter ourWriter = new HtmlTextWriter(swOur);
                    base.Render(ourWriter);
                    ourWriter.Flush();
                    msOur.Position = 0;
                    using (System.IO.StreamReader oReader = new StreamReader(msOur))
                    {
                        string sOurHtml = oReader.ReadToEnd();
                        string sTimHtml = fp.ReadToEnd();
                        Match regMatch;
                        regMatch = Regex.Match(sTimHtml, "<head\b[^>]*>(.*?)</head>", RegexOptions.IgnoreCase);
                        string sTimHead = regMatch.Value;
                        regMatch = Regex.Match(sTimHtml, "<body\b[^>]*>(.*?)</body>");
                        string sTimBody = regMatch.Value;
                        sOurHtml = sOurHtml.Replace("<!-- TIM_HEAD_TEXT -->", sTimHead);
                        Response.Write(sOurHtml);
                        oReader.Close();
                    }
                }
            }
        }

                                              
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:

Select allOpen in new window

 

by: abhinayp86Posted on 2009-10-16 at 10:10:08ID: 25591336

Dim str As StreamReader = File.OpenText("c:\temp\students.txt")
dim hs as string ="<head>"
dim he as string =<\head>"            
dim b as bool=false
dim headcontent as string=""
Dim s As String = str.ReadLine()
           
            While str.Peek() <> -1
                s = str.ReadLine()
                If s.Contains(hs) Then
                     b=true
                end if
                if s.contains(he) Then
                     b=false
                end if
               
                if b=true then
                    headcontent=headcontent + s
                end if  
           
end while

 

by: WingYipPosted on 2009-10-20 at 01:10:23ID: 25611846

It is not possible to guarantee that  <head>  would appear on a separate line so this would not necessarily work.

I have ended up using several string.replace statements to acheive my aims.

Cheers

Wing

 

by: abhinayp86Posted on 2009-10-20 at 11:57:18ID: 25617234

Well, This works for me all the time.. For all cases... same line, different line etc..

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim str As StreamReader = File.OpenText("C:\Documents and Settings\Abhinay\Desktop\new.html")
        Dim hs As String = "<head>"
        Dim he As String = "</head>"
        Dim b As Boolean = False
        Dim headcontent As String = ""
        Dim s As String = ""
 
        While str.Peek() <> -1
            s = str.ReadLine()
            If s.Contains(hs) Then
                s = s.Replace(hs, "`")
                s = s.Split("`")(1)
                b = True
            End If
            If s.Contains(he) Then
                s = s.Replace(he, "`")
                s = s.Split("`")(0)
                headcontent = headcontent + s + Environment.NewLine
 
                b = False
            End If
 
            If b = True Then
                headcontent = headcontent + s + Environment.NewLine
            End If
            Label1.Text = headcontent
        End While
    End Sub
                                              
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:

Select allOpen in new window

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...