c# - Fetch data which is in between html tags -


i have word document. when upload document, need fetch name that. have name in first row, data in word document like,

shanish k shanish@gmail.com ..... ...... 

for this, converted word file html, , trying read name. once converted word file getting style defenitions along actual content. dunno how data there in first row. can me out here. in advance...

note:- noticed when debugging, actual contents in between paragraph tags <p .....>shanish</p> ....., is possible fetch data in between first <p></p> ?

yes, can use htmlagilitypack, fizzlerex or csquery

i use fizzlerex. load document , select first matched p element.

using htmlagilitypack; using fizzler.systems.htmlagilitypack;  var web = new htmlweb(); var document = web.load("http://example.com/page.html") var page = document.documentnode;  var name = page.queryselector("p:eq(0)"); 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -