anchor.diff:              | "else" when reader.NodeType <> XmlNodeType.EndElement -> builderAppend <| "\nelse\n{"
               | "else" when reader.NodeType = XmlNodeType.EndElement -> builderAppend <| "\n}"
               | "transition" -> builderAppend <| "\nNavigationService.Navigate(new Uri(\"/" + reader.GetAttribute("form-id") + ".xaml\", UriKind.Relative));"
  -            | "login-request" -> builderAppend <| ("\nSystem.Net.WebRequest request = System.Net.WebRequest.Create(" + reader.GetAttribute("url") + ");
  -request.Method = \"POST\";
  -request.Timeout = 100000;
  -request.ContentType = \"application/x-www-form-urlencoded\";
  -string data = \"login=\"+" + reader.GetAttribute("login-id") + ".Text + \"&password=\" + " + reader.GetAttribute("password-id") + ".Text;
  -byte[] sendData = System.Text.Encoding.GetEncoding(1251).GetBytes(data);
  -request.ContentLength = sendData.Length;
  -System.IO.Stream sendStream = request.GetRequestStream();
  -sendStream.Write(sentData, 0, sentData.Length);
  -sendStream.Close();
  -onLoginResponse();")
  +            | "login-request" -> 
  +                builderAppend <| ("\nHttpWebRequest myRequest = (HttpWebRequest)HttpWebRequest.Create(\"" + reader.GetAttribute("url") + "\");
  +myRequest.Method = \"POST\";
  +myRequest.ContentType = \"application/x-www-form-urlencoded\";
  +myRequest.BeginGetRequestStream(new AsyncCallback(GetRequestStreamCallback), myRequest);") 
  +                append loginRequest <| "\nprivate void GetRequestStreamCallback(IAsyncResult callbackResult)
  +{
  +    HttpWebRequest myRequest = (HttpWebRequest)callbackResult.AsyncState;
  +    Stream postStream = myRequest.EndGetRequestStream(callbackResult);
  +
  +    string postData = \"login=\"+" + reader.GetAttribute("login-id") + ".Text + \"&password=\" + " + reader.GetAttribute("password-id") + ".Text;
  +    byte[] byteArray = Encoding.UTF8.GetBytes(postData);
  +
  +    postStream.Write(byteArray, 0, byteArray.Length);
  +    postStream.Close();
  + 
  +    myRequest.BeginGetResponse(new AsyncCallback(GetResponsetStreamCallback), myRequest);
  +}"
   
               | "save-session" -> builderAppend <| "\nint semicolonPos = result.IndexOf(';');
   string seesionId = result.Substring(semicolonPos + 1, result.Length - semicolonPos - 1);"
  
positive.code:     let tempStack = new Stack()
      let getName (id : string) = id.Substring(5, id.Length - 5)
      let getNumber (sizeAttr : string) = sizeAttr.Substring(0, sizeAttr.Length - 2)
      try
          while reader.Read() do
              let name = reader.Name
  
negative.code: using System.Collections.Generic;
  using System.Linq;
  using System.Net;
  using System.IO;
  using System.Text;
  using System.Diagnostics;
  using System.Windows;
  using System.Windows.Controls;
  using System.Windows.Documents;
  