how to get XML file.
-
Hi, I have some variables public string clientCase; public string vmlCase; public string caseDate; public string caseType; public string category; public string testName = string.Empty; public string comment; public string orderdBy; know i want to make a XML file from it using c#.net in this format. clientCase testname testname testname comment caseDate
-
Hi, I have some variables public string clientCase; public string vmlCase; public string caseDate; public string caseType; public string category; public string testName = string.Empty; public string comment; public string orderdBy; know i want to make a XML file from it using c#.net in this format. clientCase testname testname testname comment caseDate
Use an xmldocument object and the createelement and appendchild methods to create your new elements and add them to the document tree. you can output the contents of the xmldocument element using the xmldocument.xml method. Russell
-
Hi, I have some variables public string clientCase; public string vmlCase; public string caseDate; public string caseType; public string category; public string testName = string.Empty; public string comment; public string orderdBy; know i want to make a XML file from it using c#.net in this format. clientCase testname testname testname comment caseDate
Check out the
XmlSerializer
class.--Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen