C#
Error in writting xml : “error on line 20 at column 1: Extra content at the end of the document”
Error in writting xml : “error on line 20 at column 1: Extra content at the end of the document”, Error, in, writting, xml, :, “error, on, line, 20, at, column, 1:, Extra, content, at, the, end, of, the, document” blog,

Çözüm Write Metodundan sonra Response.End() metodunu çağırmaktır.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
public partial class xmlData : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.ContentType = "text/xml";
String xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"+
"<note>"+
"<to>Ahmet</to>"+
"<from>Mustafa</from>"+
"<heading>Hatırlatıcı</heading>"+
"<body>Hafta Sonunu Unutma</body>"+
"</note>";
Response.Write(xml);
}
}
Related Articles

İki konum arası koordinat bazlı konum arasındaki mesafeyi bulma
İki konum arası koordinat bazlı konum arasındaki mesafeyi bulma Verilen iki koordinat bazlı konum arasındaki mesafeyi bulan C# metodu. Metodumuz şu şekilde olmalıdır

İki sorgunun Sonucunu birleştirmek
İki sorgunun Sonucunu birleştirmek merging two querys results | İki sorgunun Sonucunu birleştirmek var result1 = db1.table.Where(a=>a.value>0).Select( x=> new Foo() { //set props }); var result2 = db2.table.Where(a=>a.va

C# Giriş
C# Giriş, C#,, Anders, Hejlsberg, öncülüğünde, Microsoft, firması, tarafından, ortaya, çıkarılmışi, basit,, modern,, genel, amaçlı,, nesneye, yönelik, bir, programlama, dilidir blog, mustafayılmaz.com kişisel web sitesi