How could I parse this HTML file?
Posted
by Sergio Tapia
on Stack Overflow
See other posts from Stack Overflow
or by Sergio Tapia
Published on 2010-06-14T01:38:35Z
Indexed on
2010/06/14
1:42 UTC
Read the original article
Hit count: 335
html-parsing
|htmlagilitypack
<div id="main">
<style type="text/css">
</style>
<script language="JavaScript">
</script>
<p style="margin: 0pt 0pt 0.5em;"><b>Media from <a onclick="(new Image()).src='/rg/find-media-title/media_strip/images/b.gif?link=/title/tt0087538/';" href="/title/tt0087538/">The Karate Kid</a> (1984)</b></p>
<style type="text/css">
</style>
<table style="border-collapse: collapse;">
</table>
</div>
I need to somehow extract the href value of the (new Image()). How exactly would I accomplish this with HtmlAgilityPack?
I'm new to it, and so far I haven't found a useful tutorial on how to effectively use it for parsing.
Thanks for the help!
© Stack Overflow or respective owner