Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Any way to associate HtmlAgilityPack classes with .NET Html classes?

$
0
0

 Like in any other programming thing ... you need the idea, everything else is simple. THANKS FOR THE IDEA!

Actually things are a lot simpler right now.

 

 Let's say you have HTMLElement <div class="the class">hello man</div>

 You want to get the HTMLNode corresponding to this element.

 Well we add the random attribute (like you said) and our HTMLElement becomes <div class="the class" my_attr="123124"> hello man</div>

 Now we load the htmldocument doc with the new html (that has our element edited) and get the node by using a simple //div[@my_attr='123124']

 

 Thank you!


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>