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
Post a Comment