Top "Datacontractserializer" questions

.NET Framework class, Serializing and deserializing an instance of a type into an XML stream or document using a supplied data contract.

When to use DataContract and DataMember attributes?

I am very confused about the DataContract attribute in WCF. As per my knowledge it is used for serializating user …

wcf datacontractserializer datacontract datamember
Using DataContractSerializer to serialize, but can't deserialize back

I have the following 2 functions: public static string Serialize(object obj) { DataContractSerializer serializer = new DataContractSerializer(obj.GetType()); MemoryStream memoryStream = new …

c# c#-4.0 xml-serialization datacontractserializer
XML Serialization and namespace prefixes

I'm looking for a way with C# which I can serialize a class into XML and add a namespace, but …

c# xml-serialization datacontractserializer xmlserializer
XSLT Transform XML with Namespaces

I'm trying to transform some XML into HTML using XSLT. Problem: I can't get it to work. Can someone tell …

xml xslt namespaces transform datacontractserializer
"Type not expected", using DataContractSerializer - but it's just a simple class, no funny stuff?

I'm refactoring my XML-serialization, and figured I'd try the DataContractSerializer. Everything runs smoothly, until it needs to serialize this class: …

.net xml serialization xml-serialization datacontractserializer
WCF Error "Maximum number of items that can be serialized or deserialized in an object graph is '65536'"

I am receiving the following error on a WCF call: Maximum number of items that can be serialized or deserialized …

.net wcf datacontractserializer xmlserializer servicebehavior
How to Deserialize XML using DataContractSerializer

I'm trying to deserialize an xml document: <?xml version="1.0"?> <games xmlns = "http://serialize"> <game> &…

c# asp.net .net datacontractserializer xml-deserialization
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
Formatting of XML created by DataContractSerializer

Is there an easy way to get DataContractSerializer to spit out formatted XML rather then one long string? I don't …

c# xml formatting datacontractserializer
Serializing object with no namespaces using DataContractSerializer

How do I remove XML namespaces from an object's XML representation serialized using DataContractSerializer? That object needs to be serialized …

.net xml-serialization namespaces datacontractserializer