This project has moved and is read-only. 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 6:17 AM

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

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

It very simple, try this code:

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