- Jul 11, 2017 The Serialize method is used to serialize an object to XML. Serialize is overloaded and can send output to a TextWriter, Stream, or XMLWriter object.
- I was looking for a lightweight and easy to use XML Serialization library for C. Mainly for simple tasks like to store application settings or to send messages. After looking around I found a few candidates. But most of them are too complicated or to heavy. I thought there must be a simple.
Serialization / Deserialization; Member-Classes; Member-Collections; Copy / Clone objects; Compare objects; Find / Replace values; Complete code in 1 header and 1 code file (+tinyxml2) Using the code. Let's have a look at the example 'application settings': The first step is to define your class containing all needed setting values.