Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there something like JAX-B for C#?

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?

like image 222
Christopher Klewes Avatar asked Feb 01 '26 12:02

Christopher Klewes


1 Answers

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.

like image 129
Allon Guralnek Avatar answered Feb 04 '26 02:02

Allon Guralnek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!