using System; using System.Collections; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using DataConnection; public partial class UTF8Examples_GetXMLFromDatabase : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //This page builds XML from database. The database contains UTF-8 encoded multilingual text. //We have pre encoded this file as UTF-8 encoded with BOM //Hence, we would just retrieve the text and relay it to the chart //For the sake of ease, we've used an MSAccess(MDB) databases - sales and all data in a table - 'monthly_utf8' //strXML will be used to store the entire XML document generated string strXML; string strQuery; //Generate the chart element strXML = ""; // Fetch all factory records strQuery = "select * from monthly_utf8"; DbConn oRs = new DbConn(strQuery); //Iterate through each month while (oRs.ReadData.Read()) { //Generate strXML = strXML + ""; } oRs.ReadData.Close(); // add style strXML = strXML + "