using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
// Using FusionMaps.dll
using InfoSoftGlobal;
public partial class BasicArrayExample_dataXML : System.Web.UI.Page
{
/// This Function will Help to Generate US Map.
protected void Page_Load(object sender, EventArgs e)
{
// Declare array entity to store world population
// We use world map with 8 entities/continents
// this 2 dimensional array will store 8 rows of data for each continent of the map
// first column of each row will store the Internal Id of each entity on the map
// second column will store population data of each entity
// Store population data
string[,] dataArray = new string[8, 2];
dataArray[0, 0] = "01";
dataArray[0, 1] = "3779000000";
dataArray[1, 0] = "02";
dataArray[1, 1] = "727000000";
dataArray[2, 0] = "03";
dataArray[2, 1] = "877500000";
dataArray[3, 0] = "04";
dataArray[3, 1] = "421500000";
dataArray[4, 0] = "05";
dataArray[4, 1] = "379500000";
dataArray[5, 0] = "06";
dataArray[5, 1] = "80200000";
dataArray[6, 0] = "07";
dataArray[6, 1] = "32000000";
dataArray[7, 0] = "08";
dataArray[7, 1] = "179000000";
// Now, we need to convert this data into XML.
// We convert using string concatenation.
// Declare strXML to store dataXML of the map
StringBuilder strXML = new StringBuilder();
//Initialize