XmlDocument doc = new XmlDocument();
//Create Root Element
XmlElement root = doc.CreateElement("Datasource");
//Create Var Tag Node
XmlElement var = doc.CreateElement("var");
//Apply Host Name Attribute to the var element
var.SetAttribute("name", "Host");
// create innertext element for var
XmlElement str = doc.CreateElement("string");
str.InnerText = "127.0.0.1";
//add inntertext element to the var node
var.AppendChild(str);
//add var node in root node
root.AppendChild(var);
var = doc.CreateElement("var");
var.SetAttribute("name", "Database");
str = doc.CreateElement("string");
str.InnerText = "TestDB";
var.AppendChild(str);
root.AppendChild(var);
var = doc.CreateElement("var");
var.SetAttribute("name", "Username");
str = doc.CreateElement("string");
str.InnerText = "Root";
var.AppendChild(str);
root.AppendChild(var);
var = doc.CreateElement("var");
var.SetAttribute("name", "Password");
str = doc.CreateElement("string");
str.InnerText = "Root123";
var.AppendChild(str);
root.AppendChild(var);
doc.AppendChild(root);
//Create Xml File To Application Start up Path Folder
doc.Save(Application.StartupPath + "_datasource.xml");
//Create Root Element
XmlElement root = doc.CreateElement("Datasource");
//Create Var Tag Node
XmlElement var = doc.CreateElement("var");
//Apply Host Name Attribute to the var element
var.SetAttribute("name", "Host");
// create innertext element for var
XmlElement str = doc.CreateElement("string");
str.InnerText = "127.0.0.1";
//add inntertext element to the var node
var.AppendChild(str);
//add var node in root node
root.AppendChild(var);
var = doc.CreateElement("var");
var.SetAttribute("name", "Database");
str = doc.CreateElement("string");
str.InnerText = "TestDB";
var.AppendChild(str);
root.AppendChild(var);
var = doc.CreateElement("var");
var.SetAttribute("name", "Username");
str = doc.CreateElement("string");
str.InnerText = "Root";
var.AppendChild(str);
root.AppendChild(var);
var = doc.CreateElement("var");
var.SetAttribute("name", "Password");
str = doc.CreateElement("string");
str.InnerText = "Root123";
var.AppendChild(str);
root.AppendChild(var);
doc.AppendChild(root);
//Create Xml File To Application Start up Path Folder
doc.Save(Application.StartupPath + "_datasource.xml");
C# binding treeview node to XML file
ReplyDeleteAnkur Bhargav'S C Bolg >>>>> Download Now
Delete>>>>> Download Full
Ankur Bhargav'S C Bolg >>>>> Download LINK
>>>>> Download Now
Ankur Bhargav'S C Bolg >>>>> Download Full
>>>>> Download LINK Fv
van
ReplyDeleteerzincan
sivas
ağrı
manisa
3Z6
F5999
ReplyDeleteEskişehir Evden Eve Nakliyat
Coin Nedir
Antalya Evden Eve Nakliyat
Muş Evden Eve Nakliyat
Denizli Evden Eve Nakliyat
2EB84
ReplyDeleteKastamonu Evden Eve Nakliyat
Antalya Evden Eve Nakliyat
Ardahan Evden Eve Nakliyat
Ankara Evden Eve Nakliyat
Eryaman Alkollü Mekanlar
deca durabolin
buy anapolon oxymetholone
testosterone propionat
for sale dianabol methandienone
C910E
ReplyDelete%20 binance referans kodu
0C26A
ReplyDeletebinance referans kodu
54857
ReplyDeleteMexc Borsası Güvenilir mi
Satoshi Coin Hangi Borsada
Floki Coin Hangi Borsada
Görüntülü Sohbet
Shibanomi Coin Hangi Borsada
Periscope Beğeni Satın Al
Osmo Coin Hangi Borsada
Twitch İzlenme Satın Al
Twitter Retweet Satın Al
89E4D
ReplyDeleteBinance Kaldıraçlı İşlem Nasıl Yapılır
Binance Para Kazanma
Bitcoin Nasıl Alınır
Threads Yeniden Paylaş Satın Al
Kripto Para Çıkarma
Caw Coin Hangi Borsada
Pitbull Coin Hangi Borsada
Ort Coin Hangi Borsada
Sonm Coin Hangi Borsada
FB78635D76
ReplyDeleteshow sitesi