XmlTextReader xmlTextReader = new XmlTextReader(ConfigurationManager.AppSettings["ProductPosAddress"].ToString());
XmlDataDocument xdoc1 = new XmlDataDocument();
xdoc1.DataSet.ReadXml(xmlTextReader, XmlReadMode.InferSchema);
DataTable dt = xdoc1.DataSet.Tables[0]; // XML i datatableye cevir.
dt.WriteXml(adminPath + @"SMBilgismbilgi" + DateTime.Now.ToShortDateString().Replace(".", "").Replace("/","") + ".xml"); // Datatebleyi XML olarak kaydet
ConfigurationManager.AppSettings["ProductPosAddress"] // web.Config deki xml in yolunu gösteren parametre.
|