<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>sfeldman.NET - All Comments</title><link>http://weblogs.asp.net/sfeldman/default.aspx</link><description>.NET, code, personal thoughts</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Working in Sandbox</title><link>http://weblogs.asp.net/sfeldman/archive/2008/09/02/sp1.aspx#7251995</link><pubDate>Thu, 12 Nov 2009 02:56:07 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7251995</guid><dc:creator>sfeldman.NET</dc:creator><author>sfeldman.NET</author><description>&lt;p&gt;As I have already mentioned, I am involved in a project that uses BizTalk 2009. With this beast, you&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7251995" width="1" height="1"&gt;</description></item><item><title>re: LINQ to XML for Better Maintainability</title><link>http://weblogs.asp.net/sfeldman/archive/2009/10/08/linq-to-xml-for-better-maintainability.aspx#7239826</link><pubDate>Mon, 26 Oct 2009 17:25:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7239826</guid><dc:creator>Bill Sorensen</dc:creator><author>Bill Sorensen</author><description>&lt;p&gt;I think you made the right decision with LINQ to XML. I would seldom even consider using a regular expression to parse XML in a production application. Regex&amp;#39;s are a great solution to a particular class of problems; parsing XML/HTML is not in that class. Using a DOM parser as you did will work in every case, even edge cases (nested tags, entities, etc.).&lt;/p&gt;
&lt;p&gt;And I&amp;#39;ve gone down the XSLT rabbit-hole before. While it has its uses, it left me with a complex, difficult to read stylesheet that no one else wanted to maintain.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7239826" width="1" height="1"&gt;</description></item><item><title>re: LINQ to XML for Better Maintainability</title><link>http://weblogs.asp.net/sfeldman/archive/2009/10/08/linq-to-xml-for-better-maintainability.aspx#7237110</link><pubDate>Fri, 23 Oct 2009 13:05:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7237110</guid><dc:creator>Sean Feldman</dc:creator><author>Sean Feldman</author><description>&lt;p&gt;Koen,&lt;/p&gt;
&lt;p&gt;Thank you for the suggested option. In case you compare the code snippet I have showed (3 lines) and the code (and I consider XSLT to be a part of code as well), this is already more work. On top of that, now your logic is distributed in code (C#) and XSLT. Planning for future changes when you have even indication that is going to happen is a waste. I try to keep in mind YAGNI principle. When a day comes, and requirements change, I will refactor not only code, but also the design, if needed. Over-designing a simple implementation can have nasty outcomes... KISS is more appropriate in this case.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7237110" width="1" height="1"&gt;</description></item><item><title>re: LINQ to XML for Better Maintainability</title><link>http://weblogs.asp.net/sfeldman/archive/2009/10/08/linq-to-xml-for-better-maintainability.aspx#7236960</link><pubDate>Fri, 23 Oct 2009 10:38:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7236960</guid><dc:creator>Koen De Waele</dc:creator><author>Koen De Waele</author><description>&lt;p&gt;Why not using an xslt sheet for this?&lt;/p&gt;
&lt;p&gt;// Load the style sheet.&lt;/p&gt;
&lt;p&gt;XslCompiledTransform xslt = new XslCompiledTransform();&lt;/p&gt;
&lt;p&gt;xslt.Load(&amp;quot;output.xsl&amp;quot;);&lt;/p&gt;
&lt;p&gt;// Execute the transform and output the results to a file.&lt;/p&gt;
&lt;p&gt;xslt.Transform(&amp;quot;input.xml&amp;quot;, &amp;quot;output.xml&amp;quot;);&lt;/p&gt;
&lt;p&gt;and with the following xslt (from top of my head, check for errors)&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:template match=&amp;quot;/&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;lt;xsl:apply-templates select=&amp;quot;Attachment&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:template&amp;gt;&lt;/p&gt;
&lt;p&gt;using an xslt shields your code better from changes in xml formats (and thus makes it more maintainable, even for non-developer types :-)).&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:template match=&amp;quot;Attachment&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;lt;xsl:copy-of select=&amp;quot;Name&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/xsl:template&amp;gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7236960" width="1" height="1"&gt;</description></item><item><title>re: Too Loosely Coupled Code – One Year Later</title><link>http://weblogs.asp.net/sfeldman/archive/2009/10/06/too-loosely-coupled-code-one-year-later.aspx#7234554</link><pubDate>Wed, 21 Oct 2009 06:03:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7234554</guid><dc:creator>Doug Wagner</dc:creator><author>Doug Wagner</author><description>&lt;p&gt;Good to hear you are continuing to make progress on this. Always something to learn and so little time.&lt;/p&gt;
&lt;p&gt;It is not only a certain level of development that applies but having the context and time to understand. Understanding the business domain, the conventions adopted by the team, etc. apply to the context. I think documentation has seldom helped after the passage of too much time whether it is the code, tests, comments or external.&lt;/p&gt;
&lt;p&gt;The key is what helps the current team.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7234554" width="1" height="1"&gt;</description></item><item><title>Twitter Trackbacks for                 LINQ to XML for Better Maintainability - sfeldman.NET         [asp.net]        on Topsy.com</title><link>http://weblogs.asp.net/sfeldman/archive/2009/10/08/linq-to-xml-for-better-maintainability.aspx#7225956</link><pubDate>Fri, 09 Oct 2009 06:09:14 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7225956</guid><dc:creator>Twitter Trackbacks for                 LINQ to XML for Better Maintainability - sfeldman.NET         [asp.net]        on Topsy.com</dc:creator><author>Twitter Trackbacks for                 LINQ to XML for Better Maintainability - sfeldman.NET         [asp.net]        on Topsy.com</author><description>&lt;p&gt;Pingback from &amp;nbsp;Twitter Trackbacks for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LINQ to XML for Better Maintainability - sfeldman.NET &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [asp.net] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Topsy.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7225956" width="1" height="1"&gt;</description></item><item><title>Too Loosely Coupled Code – One Year Later</title><link>http://weblogs.asp.net/sfeldman/archive/2008/12/12/quot-hello-world-quot-tdd-style.aspx#7224507</link><pubDate>Wed, 07 Oct 2009 03:06:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7224507</guid><dc:creator>sfeldman.NET</dc:creator><author>sfeldman.NET</author><description>&lt;p&gt;More than a year ago, I have posted a blog entry related to what I was trying to implement in one of&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7224507" width="1" height="1"&gt;</description></item><item><title>Too Loosely Coupled Code – One Year Later</title><link>http://weblogs.asp.net/sfeldman/archive/2008/02/14/understanding-ioc-container.aspx#7224502</link><pubDate>Wed, 07 Oct 2009 03:01:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7224502</guid><dc:creator>sfeldman.NET</dc:creator><author>sfeldman.NET</author><description>&lt;p&gt;More than a year ago, I have posted a blog entry related to what I was trying to implement in one of&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7224502" width="1" height="1"&gt;</description></item><item><title>Too Loosely Coupled Code – One Year Later</title><link>http://weblogs.asp.net/sfeldman/archive/2008/06/09/too-loosely-coupled-code.aspx#7224499</link><pubDate>Wed, 07 Oct 2009 02:59:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7224499</guid><dc:creator>sfeldman.NET</dc:creator><author>sfeldman.NET</author><description>&lt;p&gt;More than a year ago, I have posted a blog entry related to what I was trying to implement in one of&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7224499" width="1" height="1"&gt;</description></item><item><title>re: Consuming ASMX Web Service With WCF</title><link>http://weblogs.asp.net/sfeldman/archive/2009/10/02/consuming-asmx-web-service-with-wcf.aspx#7221859</link><pubDate>Fri, 02 Oct 2009 20:20:49 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7221859</guid><dc:creator>chat</dc:creator><author>chat</author><description>&lt;p&gt;Thank you so much for the information&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7221859" width="1" height="1"&gt;</description></item></channel></rss>