Click here to Skip to main content
15,885,216 members

Comments by Codingnow20 (Top 20 by date)

Codingnow20 15-Aug-18 13:37pm View    
the name i want to call the element comes from textbox1 say iI type John Doe in the textbox1 it says that names can't include spaces.
Codingnow20 15-Aug-18 10:56am View    
that is what i am using to write to the xml but it always says names cant start with '<'
Codingnow20 15-Aug-18 10:56am View    
XDocument xdoc = XDocument.Load("SavedData.xml");
xdoc.Add(new XElement(new XCData(textbox1.text).ToString(),textbox2.text));
Codingnow20 15-Aug-18 10:55am View    
Deleted
that is what i am using to write to the xml but it always says names cant start with '<'
Codingnow20 15-Aug-18 10:54am View    
Deleted
XDocument xdoc = XDocument.Load("SavedData.xml");
xdoc.Add(new XElement(new XCData(textbox1.text).ToString(),textbox2.text));