Greetings Good People of DaniWeb,
I have been on a search for a solution for my problem for weeks and weeks now. My search has brought me into this wonderful community in which I hope to find help. I will be doing my part in the community by providing help as well when it comes to matters of my expertise.
Right now I need your help. :)
I am working on a Thesis Software. Right now I am stuck and don't know what to do.
My software needs to write xml files (Figured it out) and also READ XML Files then use the values inside the XML files as data by assigning the values to variables and such for the software. In essence we are using XML Files as a type of flat file database.
One of my XML files has the following structure:
<User>
<Student ID="1">
<FirstName> </FirstName>
<LastName> </LastName>
<StudentNumber> </StudentNumber>
</Student>
</User>
I need to be able to read the xml file and get the values inside FirstName and put it into a variable that I can use through the system(like show the firstname in a label) and the same with LastName and StudentNumber. I would like to note that there will only be one student. This particular XML file is for a Student Profile.
Also I would like to note that the location of the will depend on the programs start up location:
System.AppDomain.CurrentDomain.BaseDirectory() & "StudentProfile.xml"
Please help. Let me know your thoughts.
I will be truly grateful.
Thank you so much and have a blessed day!