
Untitled
By: a guest on
Jun 13th, 2012 | syntax:
C# | size: 1.16 KB | hits: 8 | expires: Never
XDocument file = new XDocument(
new XElement("Paths",
new XElement("NewEmployee", txbNew.Text),
new XElement("PauseEmployee", txbPausa.Text),
new XElement("DeleteEmployee", txbDelete.Text)
),
new XElement("Email",
new XElement("Data",
new XAttribute("Port", txbDataPor.Text),
new XAttribute("Host", txbDataHost.Text),
new XAttribute("Username", txbDataUser.Text),
new XAttribute("Password", txbDataPass.Text),
new XAttribute("EnableSsl", dataSsl)
),
new XElement("Support",
new XAttribute("Port", txbSupPor.Text),
new XAttribute("Host", txbSupHost.Text),
new XAttribute("Username", txbSupUser.Text),
new XAttribute("Password", txbSupPass.Text),
new XAttribute("EnableSsl", supSsl)
)
),
new XElement("PhotoPath", txbPhoto.Text)
);