This project has moved. For the latest updates, please go here.

extracting contents of <title>,<head> of a web page

Topics: Developer Forum, Project Management Forum, User Forum
Mar 24, 2010 at 5:17 AM

How can i extract contents of <title> and <head> of html page directly from  the internet(using url) ??

Apr 8, 2010 at 5:59 AM
Edited Apr 8, 2010 at 6:00 AM

It very simple, try this code:

title = htmlDoc.DocumentNode.SelectSingleNode("//title").InnerText;