I have a variable “StudentID” which is an int, I need to convert to a string then pass it to string as a string.
This is what I have so far:
int StuID = Convert.ToString("StudentID");
string ReturnXML = "<Student=\"StuID\" />";
So if the “StudentID” variable were equal to 12345, I need the ReturnXML to look like this:
<Student="12345">
Any suggestions?
I took the liberty to alter the XML a bit, to make it valid.
If you want the
Studentelement itself to have the student id value, you probably want to put the value inside the element: