I want to create a game, that will use a level system. So i want to store my levels and to be able to change them during the game (to save the state). So i decided to use XM
You can use the C libary libxml2 to read and write XML. Here's a quick intro: Cocoa Samurai: Getting Some XML Love with libXML2.
libxml2
However, have you considered using CoreData or implementing the NSCoding protocol? NSCoding would be easier to add to existing classes.
NSCoding