lautech=new XDocument(
new XDeclaration("LADOKE","AKINTOLA","UNIVERSITY"),
new XComment("LADOKE AKINTOLA UNIVERSITY OF TECHNOLOGY OGBOMOSO"),
new XElement("LAUTECH",
new XElement("Student",new XAttribute("MATRICNO",textBoxmatricno.Text),
new XElement("FirstName",textBoxfirstname.Text),
new XElement("LastName",textBoxlastname.Text),
new XElement("Phone",textBoxphone.Text),
new XElement("Address",textBoxaddress.Text),
new XElement("Gender",comboBoxgender.SelectedItem.ToString()),
new XElement("Birthday",dateTimePickerDOB.Text.ToString())
)
)
);
lautech.Save("Lautech.edu.ng.xml");
No comments:
Post a Comment