Hi guys

I need to assign elements in an xml file to a variable .

I am not familiar with xml .

If any body could provide me with some code I will appreciate it.

Here is my code .

@@@@@@@@@@@@@@@@@@@

XmlDocument xmldoc = new XmlDocument();
xmldoc.Load("myxmlfile.xml");

@firstname = xmldoc.SelectElement("firstname");

@lastname = xmldoc.SelectElement("lastname");

@@@@@@@@@@@@@@@@@@@@

I know my code is wrong, If any body suggest the write code??
This project is developed in ASP.net using C#.

Thanks In advance.