We don't do your homework for you - it is set to help you learn. How do I know this is homework? Because this time of year we get a flood of new members asking this question.
First - refer to your course work. If you can't any idea of how to start this assignment then you need to discuss this with your tutor.
Secondly - learn how to research. This ability is probably the most important thing you can pick up from education - how to find the information you need.
Start here for
manipulating XML[
^]
And here to find out
how to get the computer name[
^]
You will probably also benefit from reading ...
Code Project Quick Answers FAQ[
^]
Article Idea: How Not to Ask a Question[
^]