Imports DataConnection Partial Class UTF8Examples_GetXMLFromDatabase Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load '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 Dim strXML, strQuery As String 'Generate the chart element strXML = "" ' Fetch all factory records strQuery = "select * from monthly_utf8" Dim oRs As DbConn = New DbConn(strQuery) 'Iterate through each month While (oRs.ReadData.Read()) 'Generate strXML = strXML & "" End While oRs.ReadData.Close() ' Adding style strXML = strXML + "