I want to use texbox text to name my elements i have tried using XCData but it returns with names cannot begin with '<'. Here is my code.
Code:
XDocument xdoc = XDocument.Load("SavedData.xml"); xdoc.Add(new XElement(new XCData(textbox1.text).ToString(),textbox2.text));