What is the proper way of creating deserialization C# classes from XML data?



I'm on a project where C# deserialization classes appear to have been generated based on XML files, rather than directly from system XSD's.


Can someone please confirm: An XSD created from this single XML file could be missing metadata as some properties may be either null or missing, depending on how the XML file is generated.


From what I understand, the proper way to do this is to generate classes directly from system XSD's rather than from XML files, and identify some issues when generating from XML's?


No comments:

Post a Comment