Correct XML serialization and deserialization of "mixed" types in .NET
- by Stefan
My current task involves writing a class library for processing HL7 CDA files.
These HL7 CDA files are XML files with a defined XML schema, so I used xsd.exe to generate .NET classes for XML serialization and deserialization.
The XML Schema contains various types which contain the mixed="true" attribute, specifying that an XML node of this type…