<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Better HTML parsing and validation with HtmlAgilityPack</title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx</link><description>Let's face it; sometimes the Microsoft.VisualStudio.TestTools.WebTesting.HtmlDocument class just doesn't cut it when you're writing custom extraction and validation code. HtmlDocument was originally designed as an internal class to very efficiently parse</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Html Agility Pack</title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx#1261141</link><pubDate>Tue, 12 Dec 2006 00:23:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1261141</guid><dc:creator>ISerializable - Roy Osherove's Blog</dc:creator><description>&lt;p&gt;Now, this is cool if you do a lot of html parsing! You can tell I was drawn to it by the word &amp;quot;Agile&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Better HTML parsing and validation with HtmlAgilityPack</title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx#1264953</link><pubDate>Tue, 12 Dec 2006 11:29:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1264953</guid><dc:creator>Oleg Tkachenko</dc:creator><description>&lt;p&gt;What's wrong with SgmlReader?&lt;/p&gt;</description></item><item><title>re: Better HTML parsing and validation with HtmlAgilityPack</title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx#1265039</link><pubDate>Tue, 12 Dec 2006 11:47:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1265039</guid><dc:creator>Oleg Tkachenko</dc:creator><description>&lt;p&gt;Josh, your sample is broken. //li is absolute XPath selection. So navNode.SelectSingleNode(&amp;quot;//li&amp;quot;) returns first &amp;lt;li&amp;gt; in the document, not under navNode. If you need to select &amp;lt;li&amp;gt; descendant of navNode you need&lt;/p&gt;
&lt;p&gt;navNode.SelectSingleNode(&amp;quot;.//li&amp;quot;) or&lt;/p&gt;
&lt;p&gt;navNode.SelectSingleNode(&amp;quot;descendant::li&amp;quot;);&lt;/p&gt;</description></item><item><title>re: Better HTML parsing and validation with HtmlAgilityPack</title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx#1266198</link><pubDate>Tue, 12 Dec 2006 17:00:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1266198</guid><dc:creator>JoshCh</dc:creator><description>&lt;p&gt;Thanks Oleg, I thought something wasn't right with that XPath, but it worked so I left it alone :) &amp;nbsp;I'll update the code.&lt;/p&gt;
&lt;p&gt;I haven't used SgmlReader myself, but I've read multiple posts saying HtmlAgilityPack works much better for malformed HTML.&lt;/p&gt;
&lt;p&gt;Josh&lt;/p&gt;
</description></item><item><title>VSTS Links - 12/22/2006</title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx#1348618</link><pubDate>Fri, 22 Dec 2006 17:57:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1348618</guid><dc:creator>Team System News</dc:creator><description>&lt;p&gt;Jeff Beehler on Sam's Credo. Josh Christie on Better HTML parsing and validation with HtmlAgilityPack....&lt;/p&gt;
</description></item><item><title>Content Index for Web Tests and Load Tests</title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx#6809817</link><pubDate>Thu, 20 Dec 2007 00:12:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6809817</guid><dc:creator>Ed Glas's blog on VSTS load testing</dc:creator><description>&lt;p&gt;Visual Studio Team System for Testers Content Index for Web Tests and Load Tests Getting Started Online&lt;/p&gt;
</description></item><item><title>使用HtmlAgilityPack更好的HTML分析和验证 </title><link>http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx#9010698</link><pubDate>Wed, 22 Oct 2008 06:59:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010698</guid><dc:creator>chenming</dc:creator><description>&lt;p&gt;让我们面对它，有时候，当您正在编写自定义的提取和验证规则时Microsoft.VisualStudio.TestTools.WebTesting.HtmlDocument类不会剪切它。HtmlDoc...&lt;/p&gt;
</description></item></channel></rss>