The Intermediate Serializer class of the XNA Framework can be employed by custom tools running under Windows to directly serialize game data to an XML file.An XML file generated in this way then can be included in the game project and imported by Xml Importer Class as part of the Content Pipeline.There has to be a way to update it instead of rewritting the whole file right?Correct, but then you can not use the serializer, because that's the whole point of a serializer: to consistently serialize an object!Here is sample code: article shows how to edit xml-files using a Grid View control. Additional the user may create new records using some text fields and a button. With config files, this usually doesn't matter, because they tend to be relatively small.If it does matter to you, you will have to use another way of saving the config; a good choice might be an embedded database, like SQL Server Compact or SQLite.
It includes a special section (called config Sections) for registering all IIS and Windows Activation System (WAS) sections (machine.config has the same concept for . It has definitions for locking-down most IIS sections to the global level, so that by default they cannot be overridden by lower-level web.config files in the hierarchy.
For complex game data, using a software tool to create and maintain these assets may be useful.
Level tables, for example, might be easier to develop through a custom-level editor tool.
And also you can load xml document into Xml Document and XPath to update xml files here is an example: "); //Create a new node and add it to the document.
//The text node is the content of the price element. Create Element("marker"); Xml Attribute attr1 = doc.