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?
We are searching for an Library which supports the marshalling and unmarshalling like JAX-B
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.