xmlserializer
XmlSerializer + Polymorphism
Given a (contrived) base class, and a sub class we want to serialize via WCF using the XmlSerializer. We decorate a collection (see the response class) as per the article:[详细]
2023-01-27 03:27 分类:问答Creating XML file with identation
How can I create开发者_JAVA技巧 a XML file that has identation or, at least, line breaks between each tag?[详细]
2023-01-26 15:53 分类:问答What XML serialization method should I use for a public API?
I\'m writing a program that builds up a tree structure made up of classes that inherit from an abstract Node class. There are a number of different type of nodes built into my program. However, I also[详细]
2023-01-26 13:52 分类:问答Discrepancies in deserialization of valid xml files with System.Xml.Serialization.XmlSerializer
A fairly involved question, so thanks in advance.The following two xml files both validate against the given schemas, but on attempting to deserialize using .Net\'s XmlSerializer only the first does s[详细]
2023-01-25 05:38 分类:问答C# Deserialize XML to object
Having problems deserializing some xml into an object in C#. The error that I receive is... xmlns=\'\'> was not expected.[详细]
2023-01-23 11:42 分类:问答XmlSerializer - Error serializing an object with a URI property
I\'m having trouble serializing a class with a Uri property. System.InvalidOper开发者_JS百科ationException was unhandled[详细]
2023-01-23 02:09 分类:问答Using .NET XmlSerializer for xml with different polymorphic roots
I have XML docs with different roots coming from one source. I have a XSD schema just like described in this question, with the abstract=\'true\' root element \'BaseElem\' of a Base type, plus additio[详细]
2023-01-22 16:08 分类:问答How to generate xsi:nil element with attributes?
I have a WCF client that needs to generate a request containing this XML fragment : <reason xsi:nil=\"true\" nullFlavor=\"NA\" typeCode=\"RSON\" />[详细]
2023-01-22 09:27 分类:问答Ignoring specified encoding when deserializing XML
I am trying to read some XML received from an external interface over a socket. The problem is that the encoding is specified wrong in the XML-header (it says iso-8859-1, but it is utf-16BE). It is do[详细]
2023-01-22 09:25 分类:问答Replacing XmlSerializer due to slow WPF application start-up
I have wrote a WPF application that reads a list of movies from a XML file at a network location. When I started investigating the slow start-up it turned out that XmlSerializer has a lot overhead.[详细]
2023-01-20 21:15 分类:问答