<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>htmlagilitypack Work Item Rss Feed</title><link>http://www.codeplex.com/WorkItem/List.aspx?ProjectName=htmlagilitypack</link><description>htmlagilitypack Work Item Rss Description</description><item><title>Created Issue: end tag &lt;/script&gt; tag in javascript string code is missed read [25290]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=25290</link><description>Many people create a javascript code that write more script code such as the following example.&lt;br /&gt;The Html Parsing recognize the &amp;#39;&amp;#60;&amp;#47;script&amp;#62;&amp;#39; string as an end tag while it&amp;#39;s part of the string value.&lt;br /&gt;This result is an incorrect parsing. &lt;br /&gt;&lt;br /&gt;&amp;#60;html&amp;#62;&lt;br /&gt;&amp;#60;head&amp;#62;&lt;br /&gt;&amp;#60;meta http-equiv&amp;#61;&amp;#34;Content-Type&amp;#34; content&amp;#61;&amp;#34;text&amp;#47;html&amp;#59; charset&amp;#61;utf-8&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#60;script  &amp;#62;&lt;br /&gt; var code &amp;#61; &amp;#39;&amp;#60;sc&amp;#39;&amp;#43;&amp;#39;ript&amp;#62;&amp;#39;&amp;#59;&lt;br /&gt;code &amp;#43;&amp;#61; &amp;#39;alert&amp;#40;&amp;#34;this is a demo, I can put any code here&amp;#34;&amp;#41;&amp;#59;&amp;#39;&lt;br /&gt;code &amp;#43;&amp;#61; &amp;#39;&amp;#60;&amp;#47;script&amp;#62;&amp;#39;&amp;#59;&lt;br /&gt;document.write&amp;#40;code&amp;#41;&amp;#59;&lt;br /&gt;alert&amp;#40;&amp;#39;this code is part of the script&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#60;&amp;#47;script&amp;#62;&lt;br /&gt;&amp;#60;title&amp;#62;test&amp;#60;&amp;#47;title&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;head&amp;#62;&lt;br /&gt;&amp;#60;b&amp;#62;normal text&amp;#60;&amp;#47;b&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;html&amp;#62;&lt;br /&gt;</description><author>zivr</author><pubDate>Tue, 10 Nov 2009 09:15:09 GMT</pubDate><guid isPermaLink="false">Created Issue: end tag &lt;/script&gt; tag in javascript string code is missed read [25290] 20091110091509A</guid></item><item><title>Commented Issue: OptionOutputOriginalCase is ignored for attributes when not outputting XML [25278]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=25278</link><description>I&amp;#39;ve been using Html Agility Pack to automatically modify some HTML forms and insert ASP.NET tags into them. I ran into a problem whereby I could specify attributes with names such as &amp;#34;AssociatedControlID&amp;#34;, but they would always be output as &amp;#34;associatedcontrolid&amp;#34;, even when OptionOutputOriginalCase was set to true. I had a look in the source for the library and the problem appears to be in HtmlNode.WriteAttribute. The check for OptionOutputOriginalCase &amp;#61; true is only carried out if OptionOutputAsXml is also true. I think this option should be checked in either case, and if it is true, the original attribute name used. Unfortunately, I can&amp;#39;t switch on XML output, as this causes problems with ASP.NET tag names like &amp;#34;asp&amp;#58;TextBox&amp;#34;, so I&amp;#39;m using a modified version of the library to get around the problem for now.&lt;br /&gt;</description><author>Amtiskaw</author><pubDate>Mon, 09 Nov 2009 19:45:58 GMT</pubDate><guid isPermaLink="false">Commented Issue: OptionOutputOriginalCase is ignored for attributes when not outputting XML [25278] 20091109074558P</guid></item><item><title>Created Issue: OptionOutputUpperCase is ignored for attributes when not outputting XML [25278]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=25278</link><description>I&amp;#39;ve been using Html Agility Pack to automatically modify some HTML forms and insert ASP.NET tags into them. I ran into a problem whereby I could specify attributes with names such as &amp;#34;AssociatedControlID&amp;#34;, but they would always be output as &amp;#34;associatedcontrolid&amp;#34;, even when OptionOutputUpperCase was set to true. I had a look in the source for the library and the problem appears to be in HtmlNode.WriteAttribute. The check for OptionOutputUpperCase &amp;#61; true is only carried out if OptionOutputAsXml is also true. I think this attribute should be checked in either case, and if it is true, the original attribute name used. Unfortunately, I can&amp;#39;t switch out the XML output, as this causes problems with ASP.NET tag names like &amp;#34;asp&amp;#58;TextBox&amp;#34;, so I&amp;#39;m using a modified version of the library to get around the problem for now.&lt;br /&gt;</description><author>Amtiskaw</author><pubDate>Mon, 09 Nov 2009 19:41:46 GMT</pubDate><guid isPermaLink="false">Created Issue: OptionOutputUpperCase is ignored for attributes when not outputting XML [25278] 20091109074146P</guid></item><item><title>Commented Issue: UTF8 is not a supported encoding [25273]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=25273</link><description>We&amp;#39;ve deployed our application to several users, and we just received this error coming from the HTML Agility Pack&amp;#58;&lt;br /&gt;&lt;br /&gt;Message&amp;#58; &amp;#39;utf8&amp;#39; is not a supported encoding name.&lt;br /&gt;&lt;br /&gt;Parameter name&amp;#58; name&lt;br /&gt;&lt;br /&gt;Stacktrace&amp;#58;&lt;br /&gt;at System.Globalization.EncodingTable.internalGetCodePageFromName&amp;#40;String name&amp;#41;&lt;br /&gt;at System.Globalization.EncodingTable.GetCodePageFromName&amp;#40;String name&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.ReadDocumentEncoding&amp;#40;HtmlNode node&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.PushNodeEnd&amp;#40;Int32 index, Boolean close&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.Parse&amp;#40;&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.Load&amp;#40;TextReader reader&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.LoadHtml&amp;#40;String html&amp;#41;&lt;br /&gt;&lt;br /&gt;According to this MS Connect case &amp;#40;http&amp;#58;&amp;#47;&amp;#47;bit.ly&amp;#47;3tcHmN&amp;#41;, the bug is due to the malformed &amp;#34;utf8&amp;#34; encoding, when it should be &amp;#34;utf-8&amp;#34; &amp;#40;notice the hyphen&amp;#41;. Can HTML Agility Pack work around this issue by checking for this condition&amp;#63;&lt;br /&gt;</description><author>JudahGabriel</author><pubDate>Mon, 09 Nov 2009 16:13:32 GMT</pubDate><guid isPermaLink="false">Commented Issue: UTF8 is not a supported encoding [25273] 20091109041332P</guid></item><item><title>Created Issue: UTF8 is not a supported encoding [25273]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=25273</link><description>We&amp;#39;ve deployed our application to several users, and we just received this error coming from the HTML Agility Pack&amp;#58;&lt;br /&gt;&lt;br /&gt;Message&amp;#58; &amp;#39;utf8&amp;#39; is not a supported encoding name.&lt;br /&gt;&lt;br /&gt;Parameter name&amp;#58; name&lt;br /&gt;&lt;br /&gt;Stacktrace&amp;#58;&lt;br /&gt;at System.Globalization.EncodingTable.internalGetCodePageFromName&amp;#40;String name&amp;#41;&lt;br /&gt;at System.Globalization.EncodingTable.GetCodePageFromName&amp;#40;String name&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.ReadDocumentEncoding&amp;#40;HtmlNode node&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.PushNodeEnd&amp;#40;Int32 index, Boolean close&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.Parse&amp;#40;&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.Load&amp;#40;TextReader reader&amp;#41;&lt;br /&gt;at HtmlAgilityPack.HtmlDocument.LoadHtml&amp;#40;String html&amp;#41;&lt;br /&gt;&lt;br /&gt;According to this MS Connect case&amp;#58; http&amp;#58;&amp;#47;&amp;#47;bit.ly&amp;#47;3tcHmN the bug is due to the malformed &amp;#34;utf8&amp;#34; encoding, when it should be &amp;#34;utf-8&amp;#34; &amp;#40;notice the hyphen&amp;#41;. Can HTML Agility Pack work around this issue by checking for this condition&amp;#63;&lt;br /&gt;</description><author>JudahGabriel</author><pubDate>Mon, 09 Nov 2009 15:23:05 GMT</pubDate><guid isPermaLink="false">Created Issue: UTF8 is not a supported encoding [25273] 20091109032305P</guid></item><item><title>Created Issue: Document.WriteTo() striping tags [25231]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=25231</link><description>When i load the string into the document all of the html is there.&lt;br /&gt;&lt;br /&gt;HtmlDocument doc &amp;#61; new HtmlDocument&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;doc.LoadHtml&amp;#40;output.ToString&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;The string is html, a dropdown element with options&lt;br /&gt;...Any html page info&amp;#40;headers, html tags and such&amp;#41;...&lt;br /&gt;&amp;#60;ul&amp;#62;&amp;#60;li&amp;#62;&lt;br /&gt;&amp;#60;select&amp;#62;&lt;br /&gt;    &amp;#60;option selected&amp;#61;&amp;#34;selected&amp;#34; value&amp;#61;&amp;#34;&amp;#34;&amp;#62;&amp;#60;&amp;#47;option&amp;#62;&lt;br /&gt;    &amp;#60;option value&amp;#61;&amp;#34;10 Radial Arm Saw&amp;#34;&amp;#62;10 Radial Arm Saw - &amp;#60;&amp;#47;option&amp;#62;&lt;br /&gt;    &amp;#60;option value&amp;#61;&amp;#34;18V Packing&amp;#34;&amp;#62;18V Packing - &amp;#60;&amp;#47;option&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;select&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;li&amp;#62;&amp;#60;&amp;#47;ul&amp;#62;&lt;br /&gt;...&amp;#40;any closing tags needed for page&amp;#41;...&lt;br /&gt;Tried to get this as close as possible without giving to much unessacary code. There is some onchnage events in the sleect and a name and id attribute.&lt;br /&gt;&lt;br /&gt;The main thing i am doing is trying to strip the UL&amp;#39;s out of the page code. And it works, but when i go to writeout the string using&lt;br /&gt;&lt;br /&gt;doc.DocumentNode.WriteTo&amp;#40;&amp;#41; &lt;br /&gt;&lt;br /&gt;I get this below. Notice all the closing option tags were stripped off.&lt;br /&gt;&lt;br /&gt;...Any html page info&amp;#40;headers, html tags and such&amp;#41;...&lt;br /&gt;&amp;#60;ul&amp;#62;&amp;#60;li&amp;#62;&lt;br /&gt;&amp;#60;select&amp;#62;&lt;br /&gt;    &amp;#60;option selected&amp;#61;&amp;#34;selected&amp;#34; value&amp;#61;&amp;#34;&amp;#34;&amp;#62;&lt;br /&gt;    &amp;#60;option value&amp;#61;&amp;#34;10 Radial Arm Saw&amp;#34;&amp;#62;10 Radial Arm Saw -&lt;br /&gt;    &amp;#60;option value&amp;#61;&amp;#34;18V Packing&amp;#34;&amp;#62;18V Packing -&lt;br /&gt;&amp;#60;&amp;#47;select&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;li&amp;#62;&amp;#60;&amp;#47;ul&amp;#62;&lt;br /&gt;...&amp;#40;any closing tags needed for page&amp;#41;...&lt;br /&gt;&lt;br /&gt;I tried fooling with option setting and sometimes get this&amp;#40;below&amp;#41;, it add the &amp;#34;&amp;#47;&amp;#34; to the openning option tag&lt;br /&gt;&lt;br /&gt;...Any html page info&amp;#40;headers, html tags and such&amp;#41;...&lt;br /&gt;&amp;#60;ul&amp;#62;&amp;#60;li&amp;#62;&lt;br /&gt;&amp;#60;select&amp;#62;&lt;br /&gt;    &amp;#60;option selected&amp;#61;&amp;#34;selected&amp;#34; value&amp;#61;&amp;#34;&amp;#34;&amp;#47;&amp;#62;&amp;#60;&amp;#47;option&amp;#62;&lt;br /&gt;    &amp;#60;option value&amp;#61;&amp;#34;10 Radial Arm Saw&amp;#34;&amp;#47;&amp;#62;10 Radial Arm Saw - &amp;#60;&amp;#47;option&amp;#62;&lt;br /&gt;    &amp;#60;option value&amp;#61;&amp;#34;18V Packing&amp;#34;&amp;#47;&amp;#62;18V Packing - &amp;#60;&amp;#47;option&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;select&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;li&amp;#62;&amp;#60;&amp;#47;ul&amp;#62;&lt;br /&gt;...&amp;#40;any closing tags needed for page&amp;#41;...&lt;br /&gt;&lt;br /&gt;Anyone have any suggestiosn or ideas to what is going on&amp;#63;&lt;br /&gt;Not performing any type of filtering or such yet, just printing out the extra string in the doc.DocumentNode. This is wher I am tracing all my problems back too.&lt;br /&gt;&lt;br /&gt;This also leads to slowness problems further along in the code, when i go to parse out the UL tag, and i believe it is straing on the malformed &amp;#34;option tags&amp;#34;.&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;</description><author>kowboy33</author><pubDate>Thu, 05 Nov 2009 21:58:39 GMT</pubDate><guid isPermaLink="false">Created Issue: Document.WriteTo() striping tags [25231] 20091105095839P</guid></item><item><title>Created Issue: Bug in HtmlDocument.Save(TextWriter writer) [25104]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=25104</link><description>A line writer.Flush&amp;#40;&amp;#41; is missing in the above mentioned method. This could cause loss of contents when saving. The overloaded method Save&amp;#40;XmlWriter writer&amp;#41; already has this line.&lt;br /&gt;&lt;br /&gt;This bug &amp;#40;and solution&amp;#41; where mentioned before in the discussions here&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;htmlagilitypack.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;1260&lt;br /&gt;</description><author>BasKnowmax</author><pubDate>Tue, 27 Oct 2009 10:09:09 GMT</pubDate><guid isPermaLink="false">Created Issue: Bug in HtmlDocument.Save(TextWriter writer) [25104] 20091027100909A</guid></item><item><title>Created Issue: Character Encoding fix [24995]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=24995</link><description>Line 418 of HtmlWeb.cs has these incorrect lines&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;if &amp;#40;&amp;#40;resp.ContentEncoding &amp;#33;&amp;#61; null&amp;#41; &amp;#38;&amp;#38; &amp;#40;resp.ContentEncoding.Length&amp;#62;0&amp;#41;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;respenc &amp;#61; System.Text.Encoding.GetEncoding&amp;#40;resp.ContentEncoding&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;ContentEncoding is not the same as CharacterEncoding&amp;#33;&lt;br /&gt;The correct code should be &lt;br /&gt;&lt;br /&gt;if &amp;#40;&amp;#40;resp.CharacterSet &amp;#33;&amp;#61; null&amp;#41; &amp;#38;&amp;#38; &amp;#40;resp.CharacterSet.Length &amp;#62; 0&amp;#41;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;                respenc &amp;#61; System.Text.Encoding.GetEncoding&amp;#40;resp.CharacterSet&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;</description><author>DraconPern</author><pubDate>Tue, 20 Oct 2009 10:41:45 GMT</pubDate><guid isPermaLink="false">Created Issue: Character Encoding fix [24995] 20091020104145A</guid></item><item><title>Created Issue: can't load diacritics [24925]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=24925</link><description>is there a way to load an HTMLDocument without loosing diatrics&amp;#63;&lt;br /&gt;</description><author>mcibelli</author><pubDate>Thu, 15 Oct 2009 07:19:10 GMT</pubDate><guid isPermaLink="false">Created Issue: can't load diacritics [24925] 20091015071910A</guid></item><item><title>Created Issue: &amp;#x????; (HEX html entities) not being decoded properly [24812]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=24812</link><description>If I have the following characters in an html document&amp;#58;&lt;br /&gt;&lt;br /&gt; &amp;#38;&amp;#35;x000A&amp;#59;&lt;br /&gt;&lt;br /&gt;it becomes&lt;br /&gt; &amp;#38;&amp;#35;&amp;#35;x000A&amp;#59; &lt;br /&gt;&lt;br /&gt;&amp;#40;with two hashes&amp;#41;&lt;br /&gt;</description><author>defza</author><pubDate>Tue, 06 Oct 2009 12:36:58 GMT</pubDate><guid isPermaLink="false">Created Issue: &amp;#x????; (HEX html entities) not being decoded properly [24812] 20091006123658P</guid></item><item><title>Commented Issue: Option End Tags Dropped [21249]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=21249</link><description>To replicate, create an HtmlDocument and LoadHtml with the following string&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;select id&amp;#61;&amp;#34;foo_Bar&amp;#34; name&amp;#61;&amp;#34;foo.Bar&amp;#34;&amp;#62;&amp;#60;option selected&amp;#61;&amp;#34;selected&amp;#34; value&amp;#61;&amp;#34;1&amp;#34;&amp;#62;One&amp;#60;&amp;#47;option&amp;#62;&amp;#60;option value&amp;#61;&amp;#34;2&amp;#34;&amp;#62;Two&amp;#60;&amp;#47;option&amp;#62;&amp;#60;&amp;#47;select&amp;#62;&lt;br /&gt;&lt;br /&gt;This does some unexpected things. First, it gives two parser errors, EndTagNotRequired. Second, the SELECT node has 4 children - two for the OPTION tags and two more for the text.  That is, the text is not seen as the InnerText of the OPTION. Last, the OuterHtml is like this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;select id&amp;#61;&amp;#34;foo_Bar&amp;#34; name&amp;#61;&amp;#34;foo.Bar&amp;#34;&amp;#62;&amp;#60;option selected&amp;#61;&amp;#34;selected&amp;#34; value&amp;#61;&amp;#34;1&amp;#34;&amp;#62;One&amp;#60;option value&amp;#61;&amp;#34;2&amp;#34;&amp;#62;Two&amp;#60;&amp;#47;select&amp;#62;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m pretty confident that having and end tag for an OPTION element is considered well formed.  It should not result in errors.  Also, the text should be InnterText of the OPTION.  I have tried setting these as follows, to no avail&amp;#58;&lt;br /&gt;&lt;br /&gt;doc.OptionAutoCloseOnEnd &amp;#61; false&amp;#59;&lt;br /&gt;doc.OptionCheckSyntax &amp;#61; false&amp;#59;&lt;br /&gt;doc.OptionFixNestedTags &amp;#61; false&amp;#59;&lt;br /&gt;&lt;br /&gt;I have found this can be corrected by removing line 92 of HtmlNode.cs&amp;#58;&lt;br /&gt;&lt;br /&gt;ElementsFlags.Add&amp;#40;&amp;#34;option&amp;#34;, HtmlElementFlag.Empty&amp;#41;&amp;#59;&lt;br /&gt;Comments: ** Comment from web user: defza ** &lt;p&gt;But there&amp;#39;s a problem when you have an empty option&amp;#58;&lt;/p&gt;&lt;p&gt;&amp;#60;option value&amp;#61;&amp;#34;&amp;#34;&amp;#62;&amp;#60;&amp;#47;option&amp;#62;&lt;/p&gt;</description><author>defza</author><pubDate>Tue, 06 Oct 2009 12:27:38 GMT</pubDate><guid isPermaLink="false">Commented Issue: Option End Tags Dropped [21249] 20091006122738P</guid></item><item><title>Closed Feature: Patch for supporting Proxys [8055]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=8055</link><description>I have patched HtmlWeb.cs to support proxies without changing the existing interfaces and adding new ones.  Please integrate this into the base code.&lt;br /&gt;Comments: &lt;p&gt;&lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Sat, 03 Oct 2009 17:45:18 GMT</pubDate><guid isPermaLink="false">Closed Feature: Patch for supporting Proxys [8055] 20091003054518P</guid></item><item><title>Commented Feature: Patch for supporting Proxys [8055]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=8055</link><description>I have patched HtmlWeb.cs to support proxies without changing the existing interfaces and adding new ones.  Please integrate this into the base code.&lt;br /&gt;Comments: ** Comment from web user: DarthObiwan ** &lt;p&gt;I have integrated this into the current code base and it will be included in the next release&lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Sat, 03 Oct 2009 17:45:07 GMT</pubDate><guid isPermaLink="false">Commented Feature: Patch for supporting Proxys [8055] 20091003054507P</guid></item><item><title>Closed Issue: Memory Leak for HtmlNode [14297]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=14297</link><description>HtmlNode.WriteTo&amp;#40;&amp;#41; and HtmlNode.WriteContentTo&amp;#40;&amp;#41; causes a memory leak not closing the StringStream opened.&lt;br /&gt;&lt;br /&gt;public string WriteTo&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;StringWriter sw &amp;#61; new StringWriter&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;WriteTo&amp;#40;sw&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;sw.Flush&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;return sw.ToString&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;Should be&lt;br /&gt;public string WriteTo&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;StringWriter sw &amp;#61; new StringWriter&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;WriteTo&amp;#40;sw&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;sw.Flush&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;string s &amp;#61; sw.ToString&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;sw.Close&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;return s&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;Or better yet, using &amp;#123;&amp;#125; block&lt;br /&gt;Comments: &lt;p&gt;&lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Sat, 03 Oct 2009 16:34:48 GMT</pubDate><guid isPermaLink="false">Closed Issue: Memory Leak for HtmlNode [14297] 20091003043448P</guid></item><item><title>Closed Issue: SelectNodes from ChildNodes [13102]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=13102</link><description>It would be nice if I could use SelectNodes&amp;#40;&amp;#41; from a child node and have it only select those type of nodes from the child nodes rather then from the entire tree.&lt;br /&gt;&lt;br /&gt;A good example, would be that I need to find all links from a specific table.  I search for the Table I want, Now all the links I want are child nodes of the table node.  &lt;br /&gt;&lt;br /&gt;Right now, if I do TableNode.SelectNodes&amp;#40;&amp;#34;&amp;#47;&amp;#47;a&amp;#34;&amp;#41;, it gets ALL links in the document. &lt;br /&gt;&lt;br /&gt;I have coded a work around, but it would be a very useful feature that would save a lot of extra code down the road.&lt;br /&gt;Comments: &lt;p&gt;There is now an alternative, use Descendants&amp;#40;string name&amp;#41; on the node itself. This will return an IEnumerable&amp;#60;HtmlNode&amp;#62; that is yeilded to be inline with Linq to Objects. &lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Sat, 03 Oct 2009 14:53:09 GMT</pubDate><guid isPermaLink="false">Closed Issue: SelectNodes from ChildNodes [13102] 20091003025309P</guid></item><item><title>Commented Issue: HtmlNode.XPath Property [12095]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=12095</link><description>It would be nice to see an XPath property of the HTML Node class that return&amp;#39;s a node&amp;#39;s absolute xpath.&lt;br /&gt;Comments: ** Comment from web user: DarthObiwan ** &lt;p&gt;I have implemented a property that returns a valid Xpath to that particular node. Beta 1 contains the property but the path created had the &amp;#35;document element on it that was causing the path to not work. The next release will have this fixed&lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Sat, 03 Oct 2009 05:44:41 GMT</pubDate><guid isPermaLink="false">Commented Issue: HtmlNode.XPath Property [12095] 20091003054441A</guid></item><item><title>Commented Issue: Parsing problem [23074]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=23074</link><description>Hi, found parsing problem with following html code&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;html id&amp;#61;&amp;#34;thisisTest&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#60;head&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;title&amp;#62;TT&amp;#60;&amp;#47;title&amp;#62;&lt;br /&gt;&amp;#9;&amp;#60;&amp;#47;head&amp;#62;&lt;br /&gt;&amp;#9;&amp;#60;body id&amp;#61;&amp;#34;test&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;form&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;b&amp;#62;test&amp;#60;&amp;#47;b&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;&amp;#47;form&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;br &amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;This is plain text&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;span&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;b&amp;#62;BOLD&amp;#60;&amp;#47;b&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;whee&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;&amp;#47;span&amp;#62;wheeagain&lt;br /&gt;&amp;#9;&amp;#60;&amp;#47;body&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;html&amp;#62;&lt;br /&gt;&lt;br /&gt;All going well for HTML, HEAD, TITLE, BODY tag, they all appear as proper child tree &amp;#40;e.g. HEAD is child of HTML, TITLE is child of HEAD etc.&amp;#41; but then you get to BODY tag, all elements in the BODY tag pear as it children no matter in what tag they are located in. Good example is FORM tag.&lt;br /&gt;Comments: ** Comment from web user: DarthObiwan ** &lt;p&gt;In the HtmlNode class there is a list of elements and what the parser should do with those elements.&lt;br /&gt;Comment out Following line and you will get the behavior your are expecting.&lt;br /&gt;ElementsFlags.Add&amp;#40;&amp;#34;form&amp;#34;, HtmlElementFlag.CanOverlap &amp;#124; HtmlElementFlag.Empty&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;This is where the power and the drawbacks HAP has when parsing Html. This line helps it deal with malformed code but unfortunately also ends up parsing it wrong when the code is correct. I&amp;#39;m thinking of making an xml format to define these better to make it easier to tweak. Also the list shouldn&amp;#39;t be in html node, it should be it&amp;#39;s own separate strongly typed collection. &lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Sat, 03 Oct 2009 05:02:39 GMT</pubDate><guid isPermaLink="false">Commented Issue: Parsing problem [23074] 20091003050239A</guid></item><item><title>Commented Issue: Memory Leak for HtmlNode [14297]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=14297</link><description>HtmlNode.WriteTo&amp;#40;&amp;#41; and HtmlNode.WriteContentTo&amp;#40;&amp;#41; causes a memory leak not closing the StringStream opened.&lt;br /&gt;&lt;br /&gt;public string WriteTo&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;StringWriter sw &amp;#61; new StringWriter&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;WriteTo&amp;#40;sw&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;sw.Flush&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;return sw.ToString&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;Should be&lt;br /&gt;public string WriteTo&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;StringWriter sw &amp;#61; new StringWriter&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;WriteTo&amp;#40;sw&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;sw.Flush&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;string s &amp;#61; sw.ToString&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;sw.Close&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;return s&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;Or better yet, using &amp;#123;&amp;#125; block&lt;br /&gt;Comments: ** Comment from web user: DarthObiwan ** &lt;p&gt;Yep, the Using block would be the better way. Copying to the s string would just cause more memory to be used.&lt;br /&gt;I&amp;#39;m incorporating a using block in the next release&lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Sat, 03 Oct 2009 04:40:16 GMT</pubDate><guid isPermaLink="false">Commented Issue: Memory Leak for HtmlNode [14297] 20091003044016A</guid></item><item><title>Commented Issue: HtmlNode.XPath Property [12095]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=12095</link><description>It would be nice to see an XPath property of the HTML Node class that return&amp;#39;s a node&amp;#39;s absolute xpath.&lt;br /&gt;Comments: ** Comment from web user: DarthObiwan ** &lt;p&gt;I&amp;#39;ve added preliminary support for this on HtmlNode and HtmlAttribute . The properties get their relative xpath and add that on to their parent xpath. &lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Thu, 17 Sep 2009 04:57:31 GMT</pubDate><guid isPermaLink="false">Commented Issue: HtmlNode.XPath Property [12095] 20090917045731A</guid></item><item><title>Closed Issue: Whitespace in Content-Encoding HTTP header [4911]</title><link>http://htmlagilitypack.codeplex.com/WorkItem/View.aspx?WorkItemId=4911</link><description>I have been using HtmlAgilityPack for a work project, and at one point we encountered a page that had whitespace in the value of the Content-Encoding&amp;#58; HTTP header line &amp;#40;like &amp;#34;iso-8859-1 &amp;#34;&amp;#41;.  Attached is a small bugfix to trim the text so that this isn&amp;#39;t a problem for others.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&amp;#35; Chris&lt;br /&gt;Comments: &lt;p&gt;&lt;/p&gt;</description><author>DarthObiwan</author><pubDate>Thu, 17 Sep 2009 00:13:19 GMT</pubDate><guid isPermaLink="false">Closed Issue: Whitespace in Content-Encoding HTTP header [4911] 20090917121319A</guid></item></channel></rss>