Do you have problems in understanding XML itself or how to read/write it? XML is a really simple but powerful language. Actually there are multiple ways of storing data in it. Some put their data values inside an element as text-node others (like me) prefer to put them as attributes into an element.
Here some example elements: