<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Andrew Scott</title><link>http://dotnetjunkies.com/WebLog/kmotion/default.aspx</link><description>A blag of a blog!</description><dc:language>en-GB</dc:language><generator>CommunityServer 1.0 (Build: 1.0.1.50214)</generator><item><title>HTML DOM reference via XMLHttprequest</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/09/22/132878.aspx</link><pubDate>Thu, 22 Sep 2005 11:34:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:132878</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>0</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/132878.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=132878</wfw:commentRss><description>&lt;P&gt;Yesterday I blogged about creating new site using httpheaders, I will blog in the future about exactally how I did it.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;But I have added a simple HTML DOM reference search to the site using XMLHttpRequest.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;It's here &lt;A href="http://km0ti0n.blunted.co.uk/reference.xap"&gt;http://km0ti0n.blunted.co.uk/reference.xap&lt;/A&gt;&amp;nbsp;and it works in IE / FF / Opera and Safari!&amp;nbsp; &lt;/P&gt;
&lt;P&gt;There's another web application there (that's "WIP", well very old "WIP"!!!)&amp;nbsp; that will return a greater depth of information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=132878" width="1" height="1"&gt;</description></item><item><title>Creating lightweight web sites with HttpHeaders</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/09/21/132861.aspx</link><pubDate>Wed, 21 Sep 2005 10:21:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:132861</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>0</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/132861.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=132861</wfw:commentRss><description>&lt;P&gt;It been a long old while since&amp;nbsp;last blog entry, and I felt it was long past time to make one!&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Asp.net was my chosen&amp;nbsp;backend&amp;nbsp;quite&amp;nbsp;a while back but as time when&amp;nbsp;on&amp;nbsp;and as I used&amp;nbsp;it with more intensive GUI web applications I became to like it less and less.&amp;nbsp; It wasn;t the codebehind that&amp;nbsp;I disliked, in fact C# is a dream to write in,&amp;nbsp;it was&amp;nbsp;html content it&amp;nbsp;generated.&amp;nbsp; I understand why it had to do certain things to attain a greater modularity and appeal to a larger number of developers.&amp;nbsp; With time I came choose Web Services as the my main means of comunication with the server as you had greater control over the content rendered.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Until, this is, I wanted to create a simple web site with some server logic&amp;nbsp;using C#.&amp;nbsp; I was going to use Web services to return xhtml content-type but as someone suggested "thats like used an SUV on a go-kart track!".&amp;nbsp; So I used HttpHeaders, that let me define my own extention and process them as&amp;nbsp;I wish the content returned is exactaly as I wanted.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So I decided to create a simple javascript reference site based on my httpheaders.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://km0ti0n.blunted.co.uk"&gt;http://km0ti0n.blunted.co.uk&lt;/A&gt; &lt;/P&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=132861" width="1" height="1"&gt;</description></item><item><title>Simple Pie Chart Generator</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/23/61219.aspx</link><pubDate>Wed, 23 Mar 2005 18:21:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:61219</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>1</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/61219.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=61219</wfw:commentRss><description>&lt;P&gt;Here's a simple Pie Chart Generator that I created today&lt;/P&gt;
&lt;P&gt;Create a Bitmap for the Pie chart call DrawPie and then saves as a PNG.&lt;/P&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 100%; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid; HEIGHT: 389px; BACKGROUND-COLOR: #ffffea"&gt;&lt;!--
Code highlighting produced by Actipro SyntaxEditor
http://www.ActiproSoftware.com/Products/DotNet/
--&gt;&lt;SPAN style="COLOR: #000000"&gt;
        Bitmap oBmp  &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Bitmap(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;325&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;200&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, PixelFormat.Format24bppRgb);
        Graphics oGraphic &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Graphics.FromImage(oBmp);
        oGraphic.SmoothingMode &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; SmoothingMode.AntiAlias;
        
        oGraphic.Clear(Color.White);
        
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; [] nVals &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;[&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;5&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;];
        nVals[&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;32&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        nVals[&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;23&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        nVals[&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;2&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;26&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        nVals[&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;3&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;12&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        nVals[&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;4&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;41&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        
        DrawPie(nVals, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;Some Caption&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, oGraphic );
        
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cFileName &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DateTime.Now.Ticks.ToString() &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;.png&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        
        oBmp.Save( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;\\&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cFileName, ImageFormat.Png);
        oGraphic.Dispose();
        oBmp.Dispose();
        
      &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This is the DrawPie&amp;nbsp;method it pass it a collection of integers and the the Graphics Object and it will append the Chart to it.&lt;/P&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 100%; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid; HEIGHT: 389px; BACKGROUND-COLOR: #ffffea"&gt;    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;private&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;static&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;void&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DrawPie(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; [] nVals, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cCaption, Graphics oGraphic)
    {
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nTotalValue &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;for&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; i &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;; i &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nVals.Length; i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; ){nTotalValue &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nVals[i];}
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; find the % that one point is equal to.&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;double&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nPointVal &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; (nTotalValue &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;100.0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
        Pen oPen &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Drawing.Pen(Color.Gray, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;float&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nStartOfsegment &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;270&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
    
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;for&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; i &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;; i &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nVals.Length; i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; )
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;for each value parsed find out how what % the value of the total amount parsed &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;float&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nPercentOfTotal &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;  (&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;float&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;)(nVals[i] &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nPointVal) ;
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; and then what % it is of 360 degrees;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;float&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nPercentOfPie &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;float&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;)(nPercentOfTotal &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;3.6&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; );
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Render the Pie segment.&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            
            Brush oBrush;
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;switch&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(i)
            {
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.Green; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.Red; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;2&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.Blue; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;3&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.Purple; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;4&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.Orange; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;5&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.OrangeRed; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;6&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.Orchid; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;7&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.DarkBlue; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;case&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;8&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;: oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.DarkGoldenrod; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;default&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; :
                    oBrush &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Brushes.Black;
                    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;break&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
            }
            oGraphic.FillPie( oBrush, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;10&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;10&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;100&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;100&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, nStartOfsegment, nPercentOfPie );
            oGraphic.DrawPie( oPen, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;10&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;10&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;100&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;100&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, nStartOfsegment, nPercentOfPie );
                
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( nStartOfsegment &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nPercentOfPie &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;360&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; )
            {
                nStartOfsegment &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nPercentOfPie &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;-&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; ( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;360&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;-&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nStartOfsegment );
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;else&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
            {
                nStartOfsegment &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nPercentOfPie;
            }
        }
        oGraphic.DrawString( cCaption, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Font(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;verdana&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;12&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, FontStyle.Bold, GraphicsUnit.Pixel), SystemBrushes.WindowText, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;23&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;130&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);            
    }
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=61219" width="1" height="1"&gt;</description></item><item><title>Boo Ajax! Promote XAP!</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/18/60704.aspx</link><pubDate>Fri, 18 Mar 2005 19:51:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:60704</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>6</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/60704.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=60704</wfw:commentRss><description>&lt;p&gt;I am sure you have all heard this expresion recently the web is a BUZZ with it. &lt;/p&gt;&lt;p&gt;Heres an article by&amp;nbsp;&lt;a href="http://h3h.net/"&gt;h3h, aka Brad Fults&lt;/a&gt;, on the floors and reasons not to use it: &lt;a title="Permanent Link to Boo Ajax! Promote XAP!" href="http://h3h.net/2005/03/boo-ajax-promote-xap/" rel="bookmark"&gt;Boo Ajax! Promote XAP!&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I am going to be using XAP for here on as I can't stand this "Household Cleaner Phrase!"&lt;/p&gt;&lt;p&gt;Andy&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=60704" width="1" height="1"&gt;</description></item><item><title>Happy "1111111111111" second!</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/18/60691.aspx</link><pubDate>Fri, 18 Mar 2005 16:35:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:60691</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>6</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/60691.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=60691</wfw:commentRss><description>&lt;p&gt;Today &lt;strong&gt;Fri Mar 18&amp;nbsp;2005 at 01:58:31 UTC&lt;/strong&gt; is happy 1111111111111 second!&lt;/p&gt;&lt;p&gt;Base 10 since 1/1/1970&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Try it your self:&lt;/p&gt;&lt;p&gt;&lt;pre&gt;    alert( new Date(1111111111111) );&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Next big Second... 1234567891011 &lt;/p&gt;&lt;pre&gt;    alert( new Date(1234567891011) );&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Which is &lt;strong&gt;Fri Feb 13 2009 at&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;23:31:31 UTC &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Andy&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=60691" width="1" height="1"&gt;</description></item><item><title>Screen Scraping DotNetJunkies - oh and a host of other .Text sites</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/17/60595.aspx</link><pubDate>Thu, 17 Mar 2005 18:42:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:60595</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>4</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/60595.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=60595</wfw:commentRss><description>&lt;P&gt;&lt;STRONG&gt;The what?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Here's a link to my &lt;A href="http://work.compan.net/dnjscrape"&gt;DNJScraper&lt;/A&gt;.&amp;nbsp; 
   It works with most of the themes I have tested it with though if you see any 
   error please send them to me :)&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;And Why?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Recently I have had to interface with old web applications.&amp;nbsp; Due to a 
   limitation in the database filesystem the application was written on (not being 
   thread safe) Where as the web application it self was handling the threading. I 
   decided to not access the file directly and interface via the old web 
   application over HTTP.&lt;/P&gt;
  &lt;P&gt;Whilst readignan&amp;nbsp;article in some linux magazine that showed you how to use &lt;A href="http://rubyforge.org/"&gt;
    Ruby&lt;/A&gt; to spyder a bloging engine as Ruby had "Great String 
   manipulation&amp;nbsp;and Network tools".&amp;nbsp; I thought it's got to be eaiser to 
   use &lt;STRONG&gt;.net's XMLDOM, &lt;/STRONG&gt;so I've decided to do it with dotNetJunkies 
   .Text, and it is &lt;STRONG&gt;alot &lt;/STRONG&gt;eaiser!
  &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Oh How?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Back in Febuary I bloged about &lt;A id="viewpost.ascx_TitleUrl" HREF="/WebLog/kmotion/archive/2005/02/16/54599.aspx"&gt;
    &lt;FONT color="#0000ff"&gt;HTML - XHTML&lt;/FONT&gt;&lt;/A&gt; a &lt;A title="By Peter Bromberg on eggheadcafe.com" href="http://www.eggheadcafe.com/articles/20030317.asp"
    target="_blank"&gt;HTML to XHTML Conversion with SGMLReader&lt;/A&gt; tool that I 
   was using. With that i mind here's the rest of the app.&lt;/P&gt;
  &lt;P&gt;To start Here's "&lt;STRONG&gt;SiteInterface.asms.cs&lt;/STRONG&gt;" This is a simple class 
   that can either POST or GET to any web site and return vaild XHTML.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  
  &lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 100%; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid; HEIGHT: 389px; BACKGROUND-COLOR: #ffffea"&gt;&lt;PRE&gt;&lt;!--
Code highlighting produced by Actipro SyntaxEditor
http://www.ActiproSoftware.com/Products/DotNet/
--&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Collections;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.ComponentModel;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Data;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Diagnostics;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Web;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Web.Services;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;/*&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Extra Namespaces Required &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;*/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Text;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Needed For UTF8Encoding&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Net;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Needed For WebClient&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;namespace&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DNJScrape
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Summary description for SiteInterface.
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;class&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; SiteInterface : System.Web.Services.WebService
    {
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; SiteInterface()
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;CODEGEN: This call is required by the ASP.NET Web Services Designer&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            InitializeComponent();
        }
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;#region&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Component Designer generated code&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
        
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;Required by the Web Services Designer &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;private&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; IContainer components &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Required method for Designer support - do not modify
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; the contents of this method with the code editor.
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;private&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;void&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; InitializeComponent()
        {
        }
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Clean up any resources being used.
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;protected&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;override&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;void&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Dispose( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;bool&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; disposing )
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(disposing &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; components &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;!=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;)
            {
                components.Dispose();
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;base&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.Dispose(disposing);        
        }
        
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;#endregion&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Creates Vaild XHTML from 
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cHtml"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;Invalid Html string to be procesed&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        [WebMethod]
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; MakeValid( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cHtml )
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cXHTML &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;""&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
            SgmlReaderDll.SGMLReaderHelper Reader &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; SgmlReaderDll.SGMLReaderHelper();
            cXHTML &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Reader.ProcessString(cHtml);
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cXHTML;
        }

        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Returns valid xhtml form any url using GET i.e. note the vars are appended this is how GET works
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cURL"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; i.e. http://somedomain.com/default.aspx?var1=foo&amp;amp;var2=bar&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        [WebMethod]
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; LoadPageGET( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cURL )
        {
            WebClient oClient &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; WebClient();
            UTF8Encoding oEncode &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; UTF8Encoding();
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.MakeValid( oEncode.GetString( oClient.DownloadData( cURL ) ) );
        }

        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Returns valid xhtml form any url
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; using GET 
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; ie http://somedomain.com/default.aspx
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; the vars are posted to the server via Headers
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cURL"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; i.e. http://somedomain.com/default.aspx&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cParams"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;string "var1=foo&amp;amp;var2=bar"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        [WebMethod]
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; LoadPagePOST( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cURL, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cParams )
        {
            WebClient oClient &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; WebClient();
            UTF8Encoding oEncode &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; UTF8Encoding();
            oClient.Headers.Add(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;Content-Type&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.MakeValid( oEncode.GetString( oClient.UploadData(cURL, &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;POST&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;, Encoding.ASCII.GetBytes(cParams)) ) );
        }
    }
}
&lt;/SPAN&gt;&lt;/PRE&gt;
  &lt;/DIV&gt;
  &lt;XMP&gt;&lt;/XMP&gt;
  &lt;P&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P&gt;This is "&lt;STRONG&gt;DNJProcessing.asmx.cs&lt;/STRONG&gt;" this is where the Blogs get 
   processed.&amp;nbsp; It contains 4 methods, all of which are [WebMethods] (I had 
   ideas of creating an XAP / chubby client for it).&amp;nbsp;
  &lt;/P&gt;
  &lt;XMP&gt;&lt;/XMP&gt;
  &lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 100%; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid; HEIGHT: 389px; BACKGROUND-COLOR: #ffffea"&gt;&lt;PRE&gt;&lt;!--
Code highlighting produced by Actipro SyntaxEditor
http://www.ActiproSoftware.com/Products/DotNet/
--&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Collections;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.ComponentModel;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Data;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Diagnostics;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Web;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Web.Services;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;/*&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Extra Namespaces Required &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;*/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System.Xml;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Needed For Xml...&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;namespace&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DNJScrape
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Summary description for DNJProcessing.
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;class&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DNJProcessing : System.Web.Services.WebService
    {
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; SiteInterface oSiteInterface;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DNJProcessing()
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;CODEGEN: This call is required by the ASP.NET Web Services Designer&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            InitializeComponent();
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.oSiteInterface &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; SiteInterface();
        }
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;#region&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Component Designer generated code&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
        
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;Required by the Web Services Designer &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;private&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; IContainer components &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
                
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Required method for Designer support - do not modify
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; the contents of this method with the code editor.
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;private&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;void&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; InitializeComponent()
        {
        }
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Clean up any resources being used.
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;protected&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;override&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;void&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Dispose( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;bool&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; disposing )
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(disposing &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; components &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;!=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;)
            {
                components.Dispose();
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;base&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.Dispose(disposing);        
        }
        
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;#endregion&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Query DNJ .Text weblog for the archive list of months that the user has blogs for
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cURL"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; http://dotnetjunkies.com/weblog/kmotion/ &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;A collection of urls for ie http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03.aspx and months&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        [WebMethod]
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; ReturnObjs.MonthsArchive [] GetMonths( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cURL )
        {        
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Create an XmlDocument&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            XmlDocument oXHTML &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; XmlDocument();
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Get the XHTML for the give url using GET. And Load in to oXHTML&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            oXHTML.LoadXml( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.oSiteInterface.LoadPageGET( cURL ) );
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;string cResult = "";
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Select the &amp;lt;h3&amp;gt;Archives&amp;lt;/h3&amp;gt; tag.  &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            XmlNode oArchiveTitle        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oXHTML.SelectSingleNode(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;//h3[text()='Archives']&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( oArchiveTitle &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; )
            {
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; scrape for this &amp;lt;h1 class = "listtitle"&amp;gt;Archives&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;                oArchiveTitle        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oXHTML.SelectSingleNode(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;//h1[text()='Archives']&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            }
            
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Select the &amp;lt;a&amp;gt; tags of the &amp;lt;ul&amp;gt; (Node Next to &amp;lt;h3&amp;gt; in the DOM).&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            XmlNodeList oArchiveLinks    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oArchiveTitle.NextSibling.SelectNodes(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;li/a&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Create a ReturnObj;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            ReturnObjs.MonthsArchive [] oResult &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DNJScrape.ReturnObjs.MonthsArchive [oArchiveLinks.Count];
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nCounter &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Fill ReturnObj with Data&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( XmlNode oMonth &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;in&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oArchiveLinks )
            {
                oResult[nCounter]            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; ReturnObjs.MonthsArchive();
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Take the textnodes value &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;                oResult[nCounter].cMonth    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oMonth.FirstChild.Value;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Take the href attrib value&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;                oResult[nCounter].cUrl        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oMonth.SelectSingleNode(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;@href&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;).Value;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Could do some string / regexp work with cMonth to obtain the number of posts&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;
                nCounter&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oResult;
        }
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Query DNJ .Text weblog for the list of Posts for a given month
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cURL"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03.aspx &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        [WebMethod]
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; ReturnObjs.MonthPosts []  GetMonthPosts( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cURL )
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Create an XmlDocument&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            XmlDocument oXHTML &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; XmlDocument();
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Get the XHTML for the give url using GET. And Load in to oXHTML&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            oXHTML.LoadXml( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.oSiteInterface.LoadPageGET( cURL ) );
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Select the links for each post &amp;lt;div class="post"&amp;gt;&amp;lt;h5&amp;gt;&amp;lt;a&amp;gt;This link&amp;lt;/a&amp;gt;&amp;lt;/h5&amp;gt;&amp;lt;/div&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            XmlNodeList oPosts        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oXHTML.SelectNodes(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;//div[@class='post']/h5/a&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( oPosts.Count &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; )
            {
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;scrape for this &amp;lt;li class = "entrylistitem"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;                oPosts        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oXHTML.SelectNodes(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;//li[@class='entrylistitem']/a&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Create a ReturnObj;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            ReturnObjs.MonthPosts [] oResult &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DNJScrape.ReturnObjs.MonthPosts [oPosts.Count];
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nCounter &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Fill ReturnObj with Data&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( XmlNode oPost &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;in&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oPosts )
            {
                oResult[nCounter]                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; ReturnObjs.MonthPosts();
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Take the textnodes value &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;                oResult[nCounter].cPostTitle    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oPost.FirstChild.Value;
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Take the href attrib value&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;                oResult[nCounter].cUrl            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oPost.SelectSingleNode(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;@href&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;).Value;
                nCounter&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;                
            }            
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oResult;    
        }

        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Query DNJ .Text weblog for the Post.
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cURL"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/14/60261.aspx &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        [WebMethod]
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; XmlNode  GetPost( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cURL )
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Create an XmlDocument&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            XmlDocument oXHTML &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; XmlDocument();
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Get the XHTML for the give url using GET. And Load in to oXHTML&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            oXHTML.LoadXml( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.oSiteInterface.LoadPageGET( cURL ) );
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Select the links for each post &amp;lt;div class="post"&amp;gt;&amp;lt;h5&amp;gt;&amp;lt;a&amp;gt;This link&amp;lt;/a&amp;gt;&amp;lt;/h5&amp;gt;&amp;lt;/div&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;            XmlNode oPost        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oXHTML.SelectSingleNode(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;//div[@class='post']&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( oPost &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;null&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; )
            {
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;//&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; scrape for this     &amp;lt;div class = "singlepost"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;                oPost        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oXHTML.SelectSingleNode(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;//div[@class='singlepost']&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oPost;
        }
    
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; Query DNJ .Text weblog for all the Posts by a junkie!.
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/summary&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;param name="cURL"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/14/60261.aspx &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;/param&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;///&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #808080"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;        [WebMethod]
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; GetAllPosts( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cURL )
        {
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cResult &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;""&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
            ReturnObjs.MonthsArchive [] oMonths &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.GetMonths( cURL );
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( ReturnObjs.MonthsArchive oMonth &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;in&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oMonths )
            {
                ReturnObjs.MonthPosts [] oMonthPosts &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.GetMonthPosts( oMonth.cUrl );
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( ReturnObjs.MonthPosts oMonthPost &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;in&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; oMonthPosts )
                {
                    cResult &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.GetPost( oMonthPost.cUrl ).OuterXml;
                }
            }
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cResult;
        }
    }
}
&lt;/SPAN&gt;&lt;/PRE&gt;
  &lt;/DIV&gt;
  &lt;XMP&gt;&lt;/XMP&gt;
  &lt;P&gt;The methods are :-&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;
    &lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; 
  ReturnObjs.MonthsArchive [] GetMonths( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cURL 
  )&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
  &lt;P&gt;&lt;SPAN style="COLOR: #000000"&gt;This method recives&amp;nbsp;a URL that's the ROOT 
of&amp;nbsp;the blogers area (&lt;A href="http://dotnetjunkies.com/WebLog/kmotion/"&gt;&lt;STRONG&gt;http://dotnetjunkies.com/WebLog/kmotion/&lt;/STRONG&gt;&lt;/A&gt;) 
.&amp;nbsp; It&amp;nbsp;returns the months the users has been bloging for and the 
respective URL's for theses months.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;
    &lt;SPAN style="COLOR: #000000"&gt;
     &lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;
     &lt;SPAN style="COLOR: #000000"&gt; 
  ReturnObjs.MonthPosts []&amp;nbsp; GetMonthPosts( &lt;/SPAN&gt;
     &lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;
     &lt;SPAN style="COLOR: #000000"&gt; cURL 
  )&lt;/SPAN&gt;
    &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
  &lt;SPAN style="COLOR: #000000"&gt;
   &lt;SPAN style="COLOR: #000000"&gt;
    &lt;P&gt;&lt;SPAN style="COLOR: #000000"&gt;This method recives&amp;nbsp;a URL that's the 
location of&amp;nbsp;blogs for the&amp;nbsp;given month (&lt;A href="http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03.aspx"&gt;&lt;STRONG&gt;http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03.aspx&lt;/STRONG&gt;&lt;/A&gt;&lt;A href="http://dotnetjunkies.com/WebLog/kmotion/"&gt;&lt;/A&gt;) .&amp;nbsp; It&amp;nbsp;returns a 
list of all the posts the users has made that month and the respective URL's for 
theses posts.&lt;/SPAN&gt;&lt;/P&gt;
   &lt;/SPAN&gt;
  &lt;/SPAN&gt;
  &lt;UL&gt;
   &lt;LI&gt;
    &lt;SPAN style="COLOR: #000000"&gt;
     &lt;SPAN style="COLOR: #000000"&gt;
      &lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;
      &lt;SPAN style="COLOR: #000000"&gt; 
  XmlNode&amp;nbsp; GetPost( &lt;/SPAN&gt;
      &lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;
      &lt;SPAN style="COLOR: #000000"&gt; cURL )&lt;/SPAN&gt;
     &lt;/SPAN&gt;
    &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
  &lt;SPAN style="COLOR: #000000"&gt;
   &lt;SPAN style="COLOR: #000000"&gt;
    &lt;SPAN style="COLOR: #000000"&gt;
     &lt;P&gt;&lt;SPAN style="COLOR: #000000"&gt;This method recives&amp;nbsp;a URL that's the 
location of&amp;nbsp;the Post&amp;nbsp;(&lt;A href="http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/01/57618.aspx"&gt;&lt;STRONG&gt;http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/01/57618.aspx&lt;/STRONG&gt;&lt;/A&gt;&lt;A href="http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03.aspx"&gt;&lt;/A&gt;&lt;A href="http://dotnetjunkies.com/WebLog/kmotion/"&gt;&lt;/A&gt;).&amp;nbsp; It&amp;nbsp;returns a 
Valid XHTML Node of the Post.&lt;/SPAN&gt;&lt;/P&gt;
    &lt;/SPAN&gt;
   &lt;/SPAN&gt;
  &lt;/SPAN&gt;
  &lt;UL&gt;
   &lt;LI&gt;
    &lt;SPAN style="COLOR: #000000"&gt;
     &lt;SPAN style="COLOR: #000000"&gt;
      &lt;SPAN style="COLOR: #000000"&gt;
       &lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;
       &lt;SPAN style="COLOR: #000000"&gt;&lt;/SPAN&gt;
       &lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;
       &lt;SPAN style="COLOR: #000000"&gt; GetAllPosts( &lt;/SPAN&gt;
       &lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;
       &lt;SPAN style="COLOR: #000000"&gt; cURL )&amp;nbsp; 
  &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;*PLEASE NOTE*&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
      &lt;/SPAN&gt;
     &lt;/SPAN&gt;
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&lt;EM&gt;- I&amp;nbsp;have only used this once and I have 
      disabled it but left the code in place.&amp;nbsp; I&amp;nbsp;thought is was a bit 
      irrisponsible as it could put a heavy load on the DNJ servers if the number of 
      posts the user has made is quite large.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
  &lt;SPAN style="COLOR: #000000"&gt;
   &lt;P&gt;&lt;SPAN style="COLOR: #000000"&gt;&lt;SPAN style="COLOR: #000000"&gt;This method 
recives&amp;nbsp;a URL that's the ROOT of&amp;nbsp;the blogers area &lt;/SPAN&gt;(&lt;A href="http://dotnetjunkies.com/WebLog/kmotion/"&gt;
      &lt;STRONG&gt;http://dotnetjunkies.com/WebLog/kmotion/&lt;/STRONG&gt;&lt;/A&gt;).&amp;nbsp; 
It&amp;nbsp;returns a Valid XHTML string of the &lt;STRONG&gt;ALL&lt;/STRONG&gt; Posts made by 
that user.&lt;/SPAN&gt;&lt;/P&gt;
  &lt;/SPAN&gt;
  &lt;P&gt;This is "&lt;STRONG&gt;DNJScrape.ReturnObjs.MonthsArchive&lt;/STRONG&gt;" and "&lt;STRONG&gt;DNJScrape.ReturnObjs.MonthPosts&lt;/STRONG&gt;"&amp;nbsp;&amp;nbsp;These 
   are some very simple classes to handle results from the Web Service.&lt;/P&gt;
  &lt;XMP&gt;&lt;/XMP&gt;
  &lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 100%; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid; HEIGHT: 389px; BACKGROUND-COLOR: #ffffea"&gt;&lt;PRE&gt;&lt;!--
Code highlighting produced by Actipro SyntaxEditor
http://www.ActiproSoftware.com/Products/DotNet/
--&gt;&lt;SPAN style="COLOR: #0000ff"&gt;using&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; System;
&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;namespace&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; DNJScrape.ReturnObjs
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;class&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; MonthsArchive
    {
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; MonthsArchive(){    }
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cMonth;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cUrl;
    }
    
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;class&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; MonthPosts
    {
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; MonthPosts()    {}
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cPostTitle;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;public&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;string&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cUrl; 
    }
}
&lt;/SPAN&gt;&lt;/PRE&gt;
  &lt;/DIV&gt;
  &lt;XMP&gt;&lt;/XMP&gt;
  &lt;P&gt;&lt;STRONG&gt;And Where?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;
    &lt;STRONG&gt;Demo&amp;nbsp;- &lt;/STRONG&gt;&lt;A href="http://work.compan.net/dnjscrape"&gt;DNJScraper&lt;/A&gt;&amp;nbsp;is 
    a simple ASP.NET application I used to wrap the web services.
   &lt;/LI&gt;
   &lt;LI&gt;
    &lt;STRONG&gt;Code&lt;/STRONG&gt;&amp;nbsp;-&amp;nbsp;&lt;A href="http://www.companioncomputers.net/DNJScrape/dnjscrape.zip"&gt;DNJScrape.zip&lt;/A&gt;&amp;nbsp;is 
    the compleate source for the application.&lt;/LI&gt;&lt;/UL&gt;
  &lt;P&gt;&lt;STRONG&gt;So What?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;As It happens it also work for more .Text blog engines, not to surprising really 
   but I don't think it will work on all.&amp;nbsp; It's dependant ion the theme 
   chosen by the bloger.&lt;/P&gt;
  &lt;P&gt;Have fun&lt;/P&gt;
  &lt;P&gt;Andy&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Now playing:&lt;/STRONG&gt; Metallica - WhereverIMayRoom&lt;/P&gt;
  &lt;P&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=60595" width="1" height="1"&gt;</description></item><item><title>Get cash for gaming!</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/14/60261.aspx</link><pubDate>Mon, 14 Mar 2005 17:32:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:60261</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>5</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/60261.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=60261</wfw:commentRss><description>&lt;p&gt;I just had to blog about this. &amp;nbsp;No it's this isn't a get rich quick advert, and no I don't mean game testing or becoming the worlds number one at first person shoot'em ups.&amp;nbsp; I talking about selling&amp;nbsp;in game commodities/gold aka "Nothing"!&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.worldofwarcraft.com/"&gt;World Of Warcraft&lt;/a&gt; a Masive Multiplayer Role Play Game in which you can earn money and I guess a whole load of other things!&amp;nbsp; But&amp;nbsp;people are now selling Gold earnt in the game on &lt;a href="http://search.ebay.co.uk/world-of-warcraft-gold"&gt;ebay&lt;/a&gt;.&amp;nbsp; It evan has it's own real life market value which is stronger that Stirling!&amp;nbsp; 1.2 GBP is roughly equevliant to 1 WOWGC ( World of Warcraft Gold Coins ).&amp;nbsp; This is a concept I am having great troubling comprehending!&amp;nbsp;&lt;/p&gt;&lt;p&gt;Has anyone else seen this trading of ingame commodities on other games?&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm thinking about buying a copy of the game and giving up the day job!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=60261" width="1" height="1"&gt;</description></item><item><title>Blog tools for Alt. IDE's setup and some JS Native Object Expansion</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/03/01/57618.aspx</link><pubDate>Tue, 01 Mar 2005 21:12:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:57618</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>8</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/57618.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=57618</wfw:commentRss><description>&lt;P&gt;A while ago&amp;nbsp;read a post on &lt;A class=headermaintitle id=Header1_HeaderTitle href="http://dotnetjunkies.com/WebLog/anoras/"&gt;Anders Nor&amp;#229;s' blog&lt;/A&gt;&amp;nbsp;about &lt;A id=viewpost.ascx_TitleUrl href="http://dotnetjunkies.com/WebLog/anoras/archive/2005/01/02/40662.aspx"&gt;New Year's "Cruft"! Everything must go!&lt;/A&gt; where he was listing what applications would honor has hard drive.&amp;nbsp; One in the List that I was very interested in was &lt;A href="http://www.jtleigh.com/CopySourceAsHtml/"&gt;Collin Coller&amp;#8217;s CopySourceAsHtml&lt;/A&gt; that enables the generation of HTML from VS.net.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I tried to use this application but as you can see from the screen shot below I use a white on black background in vs.net.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://www.companioncomputers.net/files/ss.png"&gt;&lt;/P&gt;
&lt;P&gt;The result of using CopySourceAsHtml is that it directly copies the screen styles.&amp;nbsp; And I appreciate that most developers don't use white on black so I this put me off.&amp;nbsp; Also I tend to write alot of javascript and Collin's tool only works with C# (probably VB.net never tried).&lt;/P&gt;
&lt;P&gt;Today I was reading &lt;A class=singleposttitle id=viewpost.ascx_TitleUrl href="http://codebetter.com/blogs/david.hayden/archive/2005/03/01/56226.aspx"&gt;XML Serialization - Conversion of XML Documents and Streams to Common Language Runtime Objects and Vice Versa&lt;/A&gt;&amp;nbsp;where &lt;A class=weblogtitle id=Header1_HeaderTitle href="http://codebetter.com/blogs/david.hayden/"&gt;David Hayden&lt;/A&gt;&amp;nbsp;had some C# that apperntly would run in &lt;A href="http://www.sliver.com/dotnet/SnippetCompiler/" target=_blank&gt;Snippet Compiler&lt;/A&gt;, having never seen this before I decided to install it.&amp;nbsp; To my Joy it exported HTML in the same way and it also handled Javascript syntax.&amp;nbsp; As this is not going to be my primary IDE I don't mine having to use a non white on black envionment.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway I thought I'd celebrate this discovery by posting a small chunk of some Native Javascript Object Expansion.&amp;nbsp; That's to for example Natively a String() in Javascript doesn't have a .trim() method liek we have in C# and a host of other languages.&amp;nbsp; Using prototyping we can expand the definition of a string and by adding a method to do this for us.&amp;nbsp; &lt;/P&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;String.startsWith
String.endsWith
String.trim
String.toCharArray
String.reverse

Array.indexOf
Array.clear
Array.copy&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;  
&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;String.padLeft     
String.prototype.padLeft &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(cChar, nLength)
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nLength )
    {
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nExtraLen &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nLength &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;-&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cTemp &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;""&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;for&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;( &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; i &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;; i &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; nExtraLen; i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; )
        {
            cTemp &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cChar;
        }
        cTemp &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
    }
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;else&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;{alert(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt;String Long than pad request&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);}
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; cTemp;
}

&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;String.prototype.startsWith &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(sStart)
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.substr(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;,sStart.length)&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;sStart);
}

&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;String.prototype.trim &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;()
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; b&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;,e&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;-&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;while&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.substr(b,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;) &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;) b&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;while&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.substr(e,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;) &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #008080"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;) e&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;--&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.substring(b,e&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
}

&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;String.prototype.toCharArray &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;()
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; arrRet &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Array();
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;for&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length;i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;) arrRet.push(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.substr(i,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;));
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; arrRet;
}

&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;String.prototype.reverse &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;()
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; a &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;new&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; Array();
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;for&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length;i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;) a.push(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.substr(i,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;));
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; a.reverse().join(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;""&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;);
}

&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;String.prototype.deHTML &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;()
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.replace(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;g,'&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;' ).replace(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;g,'&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;' ).replace(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;g,'&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;' ).replace(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;g,'&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;' );
}
&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;Array.prototype.indexOf &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;()
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(arguments.length&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;)
        &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;for&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;var&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length;i&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;++&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;)
            &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;[i]&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;==&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;arguments[&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;])
                &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; i;

    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;-&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;;
}


&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;Array.prototype.clear &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;()
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.splice(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length);
}


&lt;/PRE&gt;&lt;PRE style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: black 1px solid; PADDING-LEFT: 20px; FONT-SIZE: 1em; BACKGROUND: #ffffea; PADDING-BOTTOM: 20px; MARGIN: 20px 10px 10px 50px; BORDER-LEFT: black 1px solid; PADDING-TOP: 20px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN style="COLOR: #000000"&gt;Array.prototype.copy &lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;function&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;()
{
    &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;return&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.slice(&lt;/SPAN&gt;&lt;SPAN style="COLOR: #ff0000"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #0000ff"&gt;this&lt;/SPAN&gt;&lt;SPAN style="COLOR: #000000"&gt;.length);
}

&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Now playing:&lt;/STRONG&gt; Alanis Morissette - Can't Not&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=57618" width="1" height="1"&gt;</description></item><item><title>HTML - XHTML</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/02/16/54599.aspx</link><pubDate>Wed, 16 Feb 2005 17:46:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:54599</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>2</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/54599.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=54599</wfw:commentRss><description>&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;When using contentEditable="true" on an object to enable a user to generate ther own HTML IE generates invalid XHTML. &lt;/p&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;For example : &lt;/p&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;&lt;/p&gt;&lt;pre style="PADDING-RIGHT: 5px; BORDER-TOP: red 1px dashed; PADDING-LEFT: 35px; PADDING-BOTTOM: 5px; MARGIN: 10px 10px 10px 50px; WIDTH: 80%; PADDING-TOP: 5px; BACKGROUND-COLOR: #eeeeee"&gt;&amp;lt;IMG src=image.gif border=0&amp;gt;&lt;/pre&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;&lt;/p&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;This should be : &lt;/p&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;&lt;/p&gt;&lt;pre style="PADDING-RIGHT: 5px; BORDER-TOP: red 1px dashed; PADDING-LEFT: 35px; PADDING-BOTTOM: 5px; MARGIN: 10px 10px 10px 50px; WIDTH: 80%; PADDING-TOP: 5px; BACKGROUND-COLOR: #eeeeee"&gt;&amp;lt;img src="image.gif" border="0"/&amp;gt;&lt;/pre&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;&lt;/p&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;Note the case, quotes and the closing tag. Even if the HTML used with pasteHTML() is well formed it generates HTML like the first example. I spend the best part of today trying to write a Regular Expression in javascript to convert it with no luck. Until I gaveup and tried to do it with C# and read &lt;a title="By Peter Bromberg on eggheadcafe.com" href="http://www.eggheadcafe.com/articles/20030317.asp" target="_blank"&gt;HTML to XHTML Conversion with SGMLReader&lt;/a&gt; article by &lt;a title="Peter's Blog" href="http://petesbloggerama.blogspot.com/" target="_blank"&gt;Peter Bromberg&lt;/a&gt;. Its a Helper / Wrapper class for Chris Lovett of Microsoft's SGMLReader. &lt;/p&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;With this Wrapper you can parse the HTML back to the server and process it to regerate fully valid XHTML. Once you have done this you can use System.XML to manipulate the document just as if it was always XHTML. &lt;/p&gt;&lt;p style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; MARGIN: 5px 0px 0px; PADDING-TOP: 0px"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=54599" width="1" height="1"&gt;</description></item><item><title>Blog map in the UK too!</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/02/14/54332.aspx</link><pubDate>Mon, 14 Feb 2005 15:09:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:54332</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>4</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/54332.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=54332</wfw:commentRss><description>&lt;p&gt;I just though I'd add mine too :)&lt;/p&gt;
&lt;a href='http://www.csthota.com/blogmap' alt='BlogMap'&gt;&lt;img src="http://www.csthota.com/blogmap/blogapi.ashx?method=blogmap&amp;feed=http://dotnetjunkies.com/WebLog/kmotion/Rss.aspx&amp;height=250&amp;width=150&amp;label=Andrew Scott" alt='http://www.csthota.com/blogmap/' style='border-color:Black;border-width:1px;border-style:Dashed;'/&gt;&lt;/a&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=54332" width="1" height="1"&gt;</description></item><item><title>Forcing Garbage Collection on IE</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/02/03/50925.aspx</link><pubDate>Thu, 03 Feb 2005 20:54:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:50925</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>4</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/50925.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=50925</wfw:commentRss><description>&lt;h5&gt;The what?&lt;/h5&gt;&lt;p&gt;I blogged a while back about a problem with an &lt;a href="http://dotnetjunkies.com/WebLog/kmotion/archive/2004/12/08/35627.aspx"&gt;IE Memory leak with HTC's&lt;/a&gt;.  The only solution on the MSDN ( &lt;a href="http://support.microsoft.com/Default.aspx?id=309170" title="Memory leak occurs when behaviors are dynamically removed"&gt;Memory leak occurs when behaviors are dynamically removed&lt;/a&gt; )  was to change a setting in the Registry or force the page to reload.&lt;/p&gt; 
&lt;h5&gt;The why?&lt;/h5&gt;&lt;p&gt;Bascally the garbage collection was cleaning up th ehtc's until the page had been unloaded.  And as far as I know there's know way of forcing IE to start garbage collection on the htc's.&lt;/p&gt;&lt;p&gt;This wasn't going to work as I didn't want to get all the users to fiddle with the registry and reloading the page was against what i was trying to achive which was seamless comunications between the client and the server.&lt;p/&gt;
&lt;h5&gt;The how?&lt;/h5&gt;&lt;p&gt;The other day I thought... &lt;em&gt;iFrames!!!!&lt;/em&gt; I could have a iframe object that I load of for heavy work with htc's that can then be unloaded, removed and rerendered.&lt;/p&gt;&lt;pre style="margin: 0 10 10 50; padding:20; font-size:1.3em; border:solid 1px black; background color:FFFFEA;"&gt; // Add Frame Function
function AddFrame(){
   oFrame = NewObj( "iFrame", {}, this, "" );
   oFrameDoc = window.frames[0].document;
   oFrameDoc.open();			
   oFrameDoc.write(GenStdHTML());
   NewObj( "script", {src:'cclgenlib.js'}, oFrameDoc, "", oFrameDoc  )
   oList = NewObj( "ccl:List", {}, oFrame.body, "", oFrameDoc  )
}&lt;/pre&gt;&lt;p&gt;Add Frame renders a frame on the page and loads it the html from GenStdHTML.  I had to add the script files hare as adding the js file in the GenStdHTML function cause the iframe to disapear!  As you can see I am able to add another element to the iFrame (ccl:list) document this is another HTC control that is manulipated in the same way as if it was on the page contain g the iFrame.&lt;/p&gt;

&lt;pre style="margin: 0 10 10 50; padding:20; font-size:1.3em; border:solid 1px black; background color:FFFFEA;"&gt; // Generate Base HTML for iFrame
function GenStdHTML(){
   var cHTML&amp;nbsp;&amp;nbsp;&amp;nbsp;  = '&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&amp;gt;';
   cHTML&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; += '&amp;lt;html xmlns:ccl&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;CCL Widgets&amp;lt;/title&amp;gt;';
   cHTML&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; += '&amp;lt;LINK href="style.css" type="text/css" rel="stylesheet"&amp;gt;';
   cHTML&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; += '&amp;lt;/head&amp;gt;';
   cHTML&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; += '&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;';
   return cHTML;
}&lt;/pre&gt;

&lt;pre style="margin: 0 10 10 50; padding:20; font-size:1.3em; border:solid 1px black; background color:FFFFEA;"&gt; // Remove Frame Function
function RemoveFrame(){		
   oFrameDoc.location = "blank";
   oFrameDoc = null;
   DelObj( oFrame, this );
   oFrame = null;
   AddFrame();
}&lt;/pre&gt;&lt;p&gt;I set the location of the iFrame to "blank" so that it unloads and I then delete the iframe from the page.&lt;/p&gt;

&lt;pre style="margin: 0 10 10 50; padding:20; font-size:1.3em; border:solid 1px black; background color:FFFFEA;"&gt; // Creates a new Element on screen
function NewObj( tag, a, p, t, d ){
   var o;
   if (!d){ d = document}
   o = d.createElement(tag);
   if (a)for (var att in a) o[att]=a[att];
   if (p) p.appendChild(o);
   if (t) o.appendChild(d.createTextNode(t));
   return o;
}&lt;/pre&gt;

&lt;p&gt;By doing this the memory usage on the application doesn't continually grow in the same way as it does normally.&lt;p&gt;

&lt;p&gt;&lt;strong&gt;Now playing:&lt;/strong&gt; Pink Floyd - Knocking on Heaven's Door&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=50925" width="1" height="1"&gt;</description></item><item><title>Gmail only letting me give out 10!</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/02/02/50384.aspx</link><pubDate>Wed, 02 Feb 2005 20:05:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:50384</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>6</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/50384.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=50384</wfw:commentRss><description>&lt;font face="Verdana,Arial,Helvetica,sans-serif" size="2"&gt;After reading &lt;a href="http://dotnetjunkies.com/WebLog/jpalermo/archive/2005/02/02/50272.aspx"&gt;Jeffrey Palermo's&lt;/a&gt; post about gmail invites I though I'd best pass mine out. 

So if anyone wants an invite just ask...
 
&lt;/font&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=50384" width="1" height="1"&gt;</description></item><item><title>The DNJ Exodus </title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/02/01/49671.aspx</link><pubDate>Tue, 01 Feb 2005 20:22:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:49671</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>3</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/49671.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=49671</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;It such a shame that so many GREAT blogers are dropping out of DNJ's. Of all the blogs communities&amp;nbsp;i read this is by far the best.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I guess we can all learn from this, the fact that if you apps don't function well enough people are gonna look else where (I know that it's not .Text fault).&amp;nbsp; &lt;/p&gt;&lt;p&gt;I'm gonna march on, using Blogjet&amp;nbsp;to post here, and hope that this all gets resolved.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;a href="http://dotnetjunkies.com/WebLog/sskokku/archive/2005/02/01/49629.aspx"&gt;Sashidhar's&lt;/a&gt;&amp;nbsp;Post's a good idea it would be great if all the "Deserters"&amp;nbsp;;)&amp;nbsp;will cross post as it's a great shame if they were to leave this community.&amp;nbsp;:(&amp;nbsp; I know I can, and have, updated my RSS reader's feeds it's&amp;nbsp;just... it's just...&amp;nbsp;**SIGH**&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Now playing:&lt;/strong&gt; Pink Floyd - The Great Gig In the Sky&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=49671" width="1" height="1"&gt;</description></item><item><title>Visual Studio Debuging of Javscript</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/01/31/49299.aspx</link><pubDate>Mon, 31 Jan 2005 14:29:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:49299</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>3</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/49299.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=49299</wfw:commentRss><description>&lt;p&gt;I am sure we all aggree that the debuger in Visual Studio is a very powerfull tool.&amp;nbsp; Though I&amp;nbsp;use very infrequently as I have been doing alot of Javascript front end coding recently and hadn't realised that it was possible to debug Javascript in the same way as a .net app.&lt;/p&gt;&lt;p&gt;Alerts and a little debug area on&amp;nbsp;the application&amp;nbsp;was&amp;nbsp;the best option untill I read this artical &lt;a href="http://www.alphafilter.com/?inc=article&amp;amp;aid=118" target="_blank"&gt;Debugging DHTML Applications&lt;/a&gt;&amp;nbsp;off &lt;a href="http://www.alphafilter.com/"&gt;http://www.alphafilter.com/&lt;/a&gt;.&amp;nbsp; &amp;nbsp; The author explains how to attach to the browser process add breakpoints and view var values. &lt;/p&gt;&lt;p&gt;Great tool for the Wild Blue Yonder of Javascript;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Now playing:&lt;/strong&gt; Muse - New Born&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=49299" width="1" height="1"&gt;</description></item><item><title>A micro wiki that's getting chubby!</title><link>http://dotnetjunkies.com/WebLog/kmotion/archive/2005/01/28/48866.aspx</link><pubDate>Fri, 28 Jan 2005 19:29:00 GMT</pubDate><guid isPermaLink="false">58df7014-fd75-437c-9641-150997716d1c:48866</guid><dc:creator>Andrew Scott</dc:creator><slash:comments>3</slash:comments><comments>http://dotnetjunkies.com/WebLog/kmotion/comments/48866.aspx</comments><wfw:commentRss>http://dotnetjunkies.com/WebLog/kmotion/commentrss.aspx?PostID=48866</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;For some time now i have been looking for "notepad/jotter" style web site where&amp;nbsp;a team of developers can log problems and solutions.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Obviously a wiki was going to be the best solution.&amp;nbsp; I have seen and used many different wiki's but they were either php based or too cumbersum to use so I never actually got round to setting one up... until now...&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.tiddlywiki.com/" target="_blank"&gt;TiddlyWiki&lt;/a&gt;&amp;nbsp;is a javascript clientside wiki which has a great user interface and makes editing so quick.&amp;nbsp; But there's no&amp;nbsp;means of saves the changed content back to the server.&amp;nbsp; I have modified the wiki to use a .net web services to save any changes made on the site seamlessly.&lt;/p&gt;&lt;p&gt;&lt;a href="http://work.compan.net/wiki/"&gt;Here's Mine!&lt;/a&gt;&amp;nbsp;- Check it out and don't worry about changing stuff it's a wiki! &lt;/p&gt;&lt;p&gt;If you want the source I'll zip it and stick a copy on the site.&amp;nbsp; Thought be warned it's running on a development box!&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Now playing:&lt;/strong&gt; pink floyd - Comfetable Numb&lt;/p&gt;&lt;img src="http://dotnetjunkies.com/WebLog/aggbug.aspx?PostID=48866" width="1" height="1"&gt;</description></item></channel></rss>