Thursday 15 August 2013

C# analyzing html document -



C# analyzing html document -

i programming in c# , need analyze html page , homecoming text between <div class="weak-block full"> , </div>, between 2 "keys" there more "</div>". happens cant set code between "<div class="weak-block full">" , "</div>" because stop reading first </div> appears.

how can text between two?

try htmlagilitypack:

htmldocument html = new htmldocument(); html.loadhtml(yourhtml); htmlnode node = doc.documentnode.selectsinglenode("//div[@class='weak-block full']"); //use node.innerhtml need

c# html

No comments:

Post a Comment