xmlserializer
change how XmlSerializer serializes empty elements
I am using the XmlSerializer. It serializes the object just fine but the client requires required empty elements to be in this format <star:Confirm/>.The serializer instead serializes the empty[详细]
2023-01-19 20:43 分类:问答How To Deserialize Missing Boolean Field to TRUE
I\'m deserializing a custom object from a file to an object in my app using the XmlSerializer.My issue is that I want a field in the object to default to \"True\" rather than \"False\" for a new prope[详细]
2023-01-18 20:21 分类:问答How to output hex numbers via XML Serialization in c#?
I\'ve got a few classes and structures that I use XML serialization to save 开发者_运维百科and recall data, but a feature that I\'d like to have is to output integers in hex representation. Is there a[详细]
2023-01-18 15:08 分类:问答XmlSerializer serialize generic List of interface
I\'m trying to use the XmlSerializer to persist a List(T) where T is an interface. The serializer does not like interfaces. I\'m curious if there is a simple way to serialize a list of heterogeneous o[详细]
2023-01-16 13:35 分类:问答how to remove namespace from XML root element?
is there a simple way to remo开发者_如何学JAVAve the namespace from the XML root element. I have tried with[详细]
2023-01-15 17:31 分类:问答How to XML-serialize a dictionary
I have been able to serialize an IEnumerable this way: [XmlArray(\"TRANSACTIONS\")] [XmlArrayItem(\"TRANSACTION\", typeof(Record))][详细]
2023-01-15 14:26 分类:问答WCF method throws an exception of maximum items in an object graph is '65536'
I get an exception when there are too many objects returned: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http:/[详细]
2023-01-14 19:02 分类:问答JSON.NET, XmlSerializer and "Specified" property
I have a R开发者_运维问答EST service which takes JSON and XML as input and does a SOAP call to an extenal service with the deserialized content. The classes which are used for deserialization are auto[详细]
2023-01-13 20:42 分类:问答Performance: BinaryFormatter vs. XmlSerializer
I read very often that the BinaryFormatter has better performance then XmlSerializer. Out of curiosity, I wrote a test-app.[详细]
2023-01-12 10:17 分类:问答Using XmlSerializer to create an element with attributes and a value but no sub-element
Hopefully this should be an easy answer for someone out there (and possibly a dupe), but I can\'t seem to figure it out.[详细]
2023-01-12 02:06 分类:问答