C#
var url = "my html url"; var httpClient = new HttpClient(); var html = await httpClient.GetStringAsync(url); var htmlDocument = new HtmlDocument(); htmlDocument.LoadHtml(html); HtmlNode divContainer = htmlDocument.DocumentNode .SelectSingleNode("//div[@class='someclass']"); Console.WriteLine(divContainer.InnerHtml);above code gave me this
C#
iframe src="video.com/sadas" scrolling="no" frameborder="0" width="640" height="360" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true">iframe>p>finally , i want to exclude "p" tag from output , please help me with that.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Hiten PandyaRank #1,237 · 1.4K reputationPosted Mar 18, 2018, 7:22 PM EDT
tag which is under some div.