Voici le code c# que j'utilise pour répondre aux données xml
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>Tove</to>"+
"<from>Jani</from>"+
"<heading>Reminder</heading>"+
"<body>Don't forget me this weekend!</body>"+
"</note>";
Response.Write(xml);
}
}
mais j'ai eu cette erreur pourquoi ?
This page contains the following errors:
error on line 3 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.