We are searching for an Library which supports the marshalling and unmarshalling like JAX-B in Java, is there any state-of-the-art library to use?
A:
System.Xml.Serialization
Namespace is what you need. It can work with attributes, like Java annotations.
bruno conde
2009-08-11 09:16:42
+1
A:
Like Bruno said, what you're looking for is in the System.Xml.Serialization namespace, more specifically the XmlSerializer class. To serialize an object into XML, you just need to call the Serialize method, and the reverse can be done with the Deserialize method. For more information, have a look at the MSDN topic Introducing XML Serialization.
You can sometimes hit a snag when serializing to XML, if you're having trouble be sure to check out (and contribute to) this thread.
Allon Guralnek
2009-08-19 12:00:52