Welcome to the XSerializer Project
XSerializer serializes and deserializes objects into and from XML.
XSerializer vs. XmlSerializer
- Two simple custom attributes for mapping
- Supports: interfaces, classes, fields, properties, primitive types, IList<> and enums.
- Simple, Stupid and Small
- Customisable: T4 code generator and C# code
Getting Started
//custom attribute mapping sample
[XBindingElement("book", false, 0, typeof(Book))]
public IList<IBook> Books { get; set; }
//deserialize
IXSerializer xSerializer = new XSerializer();
ILibrary lib = xSerializer.Deserialize("C:\lib.xml", typeof (Library)) as ILibrary;
//serialize
xSerializer.Serialize(lib, "library", "C:\lib.xml");
XCodeGenerator (Code Generator UI)
