I create a C# console application and this code provide me what I want, but I would like to
create from the result I obtained an xml file store at the c drive. An additional require is to apply a
dtd file for validation purpose. Could some one help me to complete this code.
-------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace XMLBond_Hub
{
class Program
{
static void Main()
{
SqlConnection connString = new SqlConnection("Server=test1;UID=usuario;PWD=pass;Database=xxx");
SqlDataAdapter objDA = new SqlDataAdapter("select First_Name,Last_Name,Email,Company_Name from contact ", connString);
DataSet ds = new DataSet();
objDA.Fill(ds);
string xml = ds.GetXml();
}
}
}
Thanks