/// <summary>
 /// Updates the xml element.
 /// </summary>
 /// <param name="request"> The current web request.</param>
 private void UpdateXmlElement(WebRequest request)
 {
     if ( request.RequestType == HttpRequestType.POST )
     {
         request.UpdateXmlEnvelope(((PostWebRequest)request).PostData);
     }
     if ( request.RequestType == HttpRequestType.PUT )
     {
         request.UpdateXmlEnvelope(((PutWebRequest)request).PostData);
     }
 }
 /// <summary>
 /// Updates the current postdata.
 /// </summary>
 /// <param name="request"></param>
 private void UpdatePostData(WebRequest request)
 {
     if ( request.RequestType == HttpRequestType.POST )
     {
         ((PostWebRequest)request).PostData = this.EditorText;
     }
     if ( request.RequestType == HttpRequestType.PUT )
     {
         ((PutWebRequest)request).PostData = this.EditorText;
     }
     request.UpdateXmlEnvelope(this.EditorText);
 }