Top "Xml-serialization" questions

This tag refers to serialization technologies which use XML as a data format.

xml serialization - remove namespace

I am serializing an object using c#. I am getting result in this format given bellow <?xml version="1.0"?> &…

c# xml-serialization
C# Xml Serialization & Deserialization

I am trying to serialize an object & save it into a Sql server 2008 xml field. I also have some …

c# c#-4.0 c#-3.0 xml-serialization c#-2.0
Which characters are Invalid (unless encoded) in an XML attribute?

I can't believe I can't find this information easily accessible, so: 1) Which characters cannot be incorporated in an XML attribute …

xml xml-serialization
Why isn't my public property serialized by the XmlSerializer?

This is one i struggled with for ages so thought I'd document somewhere. (Apologies for asking and answering a question.) (…

c# .net xml-serialization
Prevent timezone conversion on deserialization of DateTime value

I have a class that I serialize/deserialize using XmlSerializer. This class contains a DateTime field. When serialized, the DateTime …

c# datetime xml-serialization timezone
XmlSerializer won't serialize IEnumerable

I have an invocation logger that is intended to record all method calls along with the parameters associated with the …

c# xml-serialization xmlserializer
How to exclude null properties when using XmlSerializer

I'm serializing a class like this public MyClass { public int? a { get; set; } public int? b { get; set; } public int? …

c# xml-serialization nullable
DataContractSerializer - how can I output the xml to a string (as opposed to a file)

I had a quick question regarding the datacontractserializer. Maybe it's more of a stream question. I found a piece of …

c# xml-serialization stream iostream datacontractserializer
using XmlArrayItem attribute without XmlArray on Serializable C# class

I want XML in the following format: <configuration><!-- Only one configuration node --> <logging&…

c# xml xml-serialization serializable xml-deserialization
How to make a value type nullable with .NET XmlSerializer?

Let's suppose I have this object: [Serializable] public class MyClass { public int Age { get; set; } public int MyClassB { get; set; } } […

c# xml-serialization null value-type